Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: a one-liner for this trivial problem?by space_monk (Chaplain) |
on Apr 16, 2013 at 17:09 UTC ( [id://1028963]=note: print w/replies, xml ) | Need Help?? |
This solution is just if you really insist on using Perl; the Re: a one-liner for this trivial problem? suggestion using grep is better....
All the above will go on one line. any minor bugs are your problem (chomps may be needed for example) :-)
A Monk aims to give answers to those who have none, and to learn from those who know more.
In Section
Seekers of Perl Wisdom
|
|