Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://241367]
Approved by adrianh
Front-paged by Enlil
[Tanktalus]: perldigious: I'm not looking to get rich. I'm looking for interesting work, with good continuity of employment, and maintenance of our current lifestyle. (An improvement wouldn't be bad, either, but that's not a requirement ;) )
erix enjoys the confusion++
[Your Mother]: :P
[Tanktalus]: Without confusion, I'd be out of a job ;)
[Tanktalus]: Already. :D
[Lady_Aleena]: Your Mother, I wish it did have a way to put in a directory to search.
[Your Mother]: Thatís silly. Itís a string op tool.
[Lady_Aleena]: So I guess I'll go argue with File::Find and grep.
[Your Mother]: I would probably use Path::Tiny instead for it's slurp and such.
[Your Mother]: s/it's/its/

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2017-05-23 19:35 GMT
Find Nodes?
    Voting Booth?