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 ...
In reply to Re: Perl script parameters
by lune
in thread Perl script parameters
by Amphiaraus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |