Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: The command line arguments

by toolic (Bishop)
on Apr 04, 2012 at 16:54 UTC ( [id://963482]=note: print w/replies, xml ) Need Help??


in reply to The command line arguments

Getopt::Long
use warnings; use strict; use Getopt::Long; my %opts; GetOptions(\%opts, qw( p=s o=s i=s h=s )) or die; if ($opts{i}) { print "i\n"; } elsif ($opts{h}) { print "h\n"; }

Here is one invocation:

$ script.pl -p prod -i foo -h bar i

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-24 18:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found