http://qs321.pair.com?node_id=304532


in reply to One-liners: Conditionals in Loops

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*