I've taken to using Getopt::Euclid. It forces me to write POD in order to have arguments at all, then handles the option parsing for me.
I suppose the main message is "don't be hand-rolling your option parser", just as "don't be hand-rolling your CGI parameter parser". Some things aren't worth the effort to reinvent save as a pedagogical exercise.
In reply to Re: Use Getopt::Long even if you don't think you need to
by herveus
in thread Use Getopt::Long even if you don't think you need to
by ysth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |