Keep It Simple, Stupid | |
PerlMonks |
Re^2: A nice little question for the insaneby jdporter (Paladin) |
on Apr 06, 2005 at 03:51 UTC ( [id://445163]=note: print w/replies, xml ) | Need Help?? |
That's probably the best answer, IMHO. Here's a more hackish approach:
chomp( @a = qx( for x in $_; do echo \$x; done ) );There's already a tool that knows how to parse command lines! :-) Update: fixed bugs in code, which was untested. Thanks, tlm!
In Section
Seekers of Perl Wisdom
|
|