Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: using getopts::long and testing for command line options

by idnopheq (Chaplain)
on Aug 22, 2001 at 18:50 UTC ( #106970=note: print w/replies, xml ) Need Help??


in reply to using getopts::long and testing for command line options

Move the GetOptions line after the @ARGV test. The Getopt modules clear their elements from @ARGV when they process.

HTH
--
idnopheq
Apply yourself to new problems without preparation, develop confidence in your ability to to meet situations as they arrise.

  • Comment on Re: using getopts::long and testing for command line options

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://106970]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2022-08-11 21:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?