Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: One-liners: Conditionals in Loops

by particle (Vicar)
on Nov 04, 2003 at 20:53 UTC ( #304532=note: print w/ replies, xml ) Need Help??


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*


Comment on Re: One-liners: Conditionals in Loops
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://304532]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (12)
As of 2015-07-31 14:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (278 votes), past polls