Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

GetOpt::Long usage style

by demerphq (Chancellor)
on Mar 08, 2003 at 11:15 UTC ( #241367=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        use GetOpt::Long;
        my $verbose = '';   # option variable with default value (false)
        my $all = '';       # option variable with default value (false)
        GetOptions ('verbose' => \$verbose, 'all' => \$all);
    
  2. or download this
        use GetOpt::Long;
        #Adjust bractes and commas to taste
    ...
                    'verbose' => \(my $verbose = ''),   
                    'all'     => \(my $all     = ''),
                   );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://241367]
Approved by adrianh
Front-paged by Enlil
help
Chatterbox?
[Corion]: I'm happy I'm not the only one who got a The Thing vibe from The Hateful Eight

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2016-12-09 19:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (155 votes). Check out past polls.