Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: GetOpt::Long usage style

by OneTrueDabe (Acolyte)
on May 08, 2014 at 16:00 UTC ( [id://1085476]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        use Getopt::Long;
        GetOptions(
           'single=s' => \(my $single = ''),
            'multi=s' => \(my @multi  = ()),
        );
    
  2. or download this
        use Getopt::Long;
        GetOptions(
           'single=s' => \(my $single = ''),
            'multi=s' => do { use vars '@multi'; \@multi },
        );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-16 17:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found