Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Perl Input Parameters for Unix

by kcott (Archbishop)
on Jul 10, 2012 at 06:20 UTC ( [id://980823]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl -l
    
    ...
    print qq{Option $_ = }, $opt{$_} for sort keys %opt;
    
    print qq{-z option detected: $opt{-z}} if exists $opt{-z};
    
  2. or download this
    $ pm_in_params.pl -i infile -o outfile -s statfile
    Option -i = infile
    ...
    Option -s = statfile
    Option -z = zzzzzzzz
    -z option detected: zzzzzzzz
    

Log In?
Username:
Password:

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

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

    No recent polls found