There's more than one way to do things | |
PerlMonks |
Re: Parsing commandline with subcommandsby Utilitarian (Vicar) |
on Jul 18, 2013 at 09:26 UTC ( [id://1045044]=note: print w/replies, xml ) | Need Help?? |
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."
In Section
Seekers of Perl Wisdom
|
|