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

Re: Perl script parameters

by lune (Monk)
on Oct 16, 2012 at 14:53 UTC ( #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: --logfile /path/to/logfile --build_version 0.2 ...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999351]
[ovedpo15]: can't I use just use lib $FindBin::Bin/../ bin" asuming that p2 is in ./bin and p1 is in /config? it says "cant find" altought p2 is
[moritz]: ovedpo15 "use lib" is only for .pm files
[moritz]: if you don't have .pm file, you might to use "require" or "do" with an absolute path

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2018-03-17 20:45 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (226 votes). Check out past polls.