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

Re^2: GetOpts::long Multiple Parameters per option

by thargas (Deacon)
on Feb 07, 2011 at 16:48 UTC ( [id://886751]=note: print w/replies, xml ) Need Help??


in reply to Re: GetOpts::long Multiple Parameters per option
in thread GetOpts::long Multiple Parameters per option

I always like learning new things; I wasn't aware of this Getopt::Long feature.

However, I prefer a different way of setting defaults, which mixes well with this:

use Getopt::Long; my $opt = { grot => [qw( a bb ccc )], }; GetOptions( $opt, 'grot=s@{2}', ) or die "can't parse options";

Log In?
Username:
Password:

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

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

    No recent polls found