Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Perl script parameters

by lune (Pilgrim)
on Oct 16, 2012 at 14:53 UTC ( [id://999351]=note: print w/replies, xml ) Need Help??


in reply to Perl script parameters

Here's a link to an answer, that applies to you too:

How do you use command line parameters?

If you want your script to be maintainable, use parameter names, so you don't have to think about the ordering of your cli arguments and so on, I would really recommend using Getopt::Long. That way, you could write:

myscript.pl --logfile /path/to/logfile --build_version 0.2 ...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-28 16:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found