Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^4: Parsing command-line arguments in a sophisticated way.

by haukex (Archbishop)
on Feb 05, 2019 at 09:26 UTC ( [id://1229395]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Data::Dump;
    my @argv = qw/ foo --job X --job Y --job Z /;
    ...
    dd $args, $job;
    __END__
    ("foo ", "X ")
    
  2. or download this
    use Data::Dump;
    my @argv = ('--hello','world --job foo','--job','bar');
    ...
    dd $args, $job;
    __END__
    ("--hello world ", "foo ")
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-25 19:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found