Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: getopt::std to pass arguments to command line helpby Discipulus (Canon) |
on Jan 21, 2015 at 08:19 UTC ( [id://1113992]=note: print w/replies, xml ) | Need Help?? |
hextor look at that good example by toolic and pay attention to the GetOptions ... or die; part. This is very important because you dont want your program to execute with wrong or not accepted args. Personally i ended using everytime yet another idiom, even more cautious:
HtH L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|