Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Command Line Options without "-" or "- -"

by izut (Chaplain)
on May 16, 2006 at 16:07 UTC ( [id://549811]=note: print w/replies, xml ) Need Help??


in reply to Command Line Options without "-" or "- -"

What about this, before parsing options using Getopt::Long, assuming the values will never have an ending ':' (untested):

@ARGV = map { s/^(.*):$/--$1/ if /:$/; $_ } @ARGV;

Igor 'izut' Sutton
your code, your rules.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-25 06:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found