Usage of --help and --version in getopts()

H

Hans van Vooren

Hi,

this is probably an easy question: I would like to use the --version
and --help features of getopts(), but despite the description on
perldoc.com I can't make it work. My script just gives out the
'Unknown option' warnings when I call
'foo.pl --help'. Can anyone help, maybe give an example?

Hans van Vooren
 
J

Jim Gibson

Hans van said:
Hi,

this is probably an easy question: I would like to use the --version
and --help features of getopts(), but despite the description on
perldoc.com I can't make it work. My script just gives out the
'Unknown option' warnings when I call
'foo.pl --help'. Can anyone help, maybe give an example?

Hans van Vooren

Please post a complete, working script if you want help, and post it to
comp.lang.perl.misc instead of here, because this newsgroup is defunct.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top