Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by PyrexKidd (Monk)
on Feb 07, 2011 at 01:26 UTC ( [id://886582]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use v5.10.1;
    ...
    
    say "$options{'a'}->[0], $options{'a'}->[1]";
    say "$options{'b'}->[0], $options['b'}->[1]";
    
  2. or download this
    $./program -a a1_1 a1_2 -a a2_1 a2_2 -a a3_1 a3_2
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-20 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found