Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Parsing commandline with subcommands

by Utilitarian (Vicar)
on Jul 18, 2013 at 09:26 UTC ( #1045044=note: print w/replies, xml ) Need Help??


in reply to Parsing commandline with subcommands

you could use Getopt::Long and reformulate your commandline with scriptname -global -options -c "subcommand_1 -opt1 -opt2..-optn"

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2016-09-26 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (478 votes). Check out past polls.