Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: GetOpts problem..........I think.........

by rchiav (Deacon)
on Sep 07, 2001 at 22:57 UTC ( #110981=note: print w/replies, xml ) Need Help??


in reply to GetOpts problem..........I think.........

This line here..
getopts('ed:', \%opts);
the colon means that 'd' takes arguments. If you're not giving it an argument, the value part of the hash is empty.. which in turn means that your if check will return false.

Hope this helps..
Rich

Replies are listed 'Best First'.
Re: Re: GetOpts problem..........I think.........
by void (Scribe) on Sep 07, 2001 at 23:16 UTC
    Thanks a bunch Rich. I knew it was something small that I was doing.

    "The Universe is not only more complex than we imagine, it is more complex than we can imagine." - Albert Einstein

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://110981]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2021-09-28 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?