Perl-Sensitive Sunglasses | |
PerlMonks |
Re: One-liners: Conditionals in Loopsby particle (Vicar) |
on Nov 04, 2003 at 20:53 UTC ( [id://304532]=note: print w/replies, xml ) | Need Help?? |
to solve this specific problem, use perl -le"/pattern/ && print for @arr". this change handles the logic found in most (of my) one-liners. ~Particle *accelerates*
In Section
Seekers of Perl Wisdom
|
|