Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: passing parameters from the command line

by l3v3l (Monk)
on Dec 08, 2005 at 00:33 UTC ( #515087=note: print w/replies, xml ) Need Help??


in reply to passing parameters from the command line

can you just use: $opt = $ARGV[0] || "default value for option"; instead of shift or is there something else going on in your script that requires you to use shift?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2022-05-17 07:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (65 votes). Check out past polls.

    Notices?