Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Setting default values in getopts

by Fletch (Chancellor)
on Mar 27, 2002 at 15:05 UTC ( #154683=note: print w/replies, xml ) Need Help??


in reply to Setting default values in getopts

Aside from jeffa's point about you re-my'ing things, you might want to use something like this instead of multiple assignments:

my %opt = ( d => "x", a => 0, s => 0, e => "x", );

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2021-02-24 17:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?