Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: ARGV issue

by jwkrahn (Monsignor)
on Oct 02, 2011 at 22:24 UTC ( #929197=note: print w/ replies, xml ) Need Help??


in reply to ARGV issue

Try it like this:

#!/usr/bin/perl use warnings; use strict; if ( grep /^(?:--help|-help|-h)$/, @ARGV ) { print "Help arguments have been found\n"; } else { print "No help arguments found\n"; }


Comment on Re: ARGV issue
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2015-07-28 18:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls