Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://929197]
help
Chatterbox?
Discipulus wonders if just numbers less than 18 are really floating..( chemical humor)
[Lady_Aleena]: Hello.
[Discipulus]: ciao Lady_Aleena
[chacham]: hi

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2017-06-26 21:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (594 votes). Check out past polls.