Don't ask to ask, just ask | |
PerlMonks |
Re: Command line tool coding style?by muba (Priest) |
on Oct 23, 2004 at 20:56 UTC ( [id://401882]=note: print w/replies, xml ) | Need Help?? |
It took me a while to figure out what you were doing, but after a while I finally discovered. It looks nice, but... isn't it easier to create a hash with the possible $_actions? Update: Hmm... it's an almost 3 years old thread. Should have checked that before posting. "2b"||!"2b";$$_="the question" Besides that, my code is untested unless stated otherwise. One more: please review the article about regular expressions (do's and don'ts) I'm working on.
In Section
Seekers of Perl Wisdom
|
|