Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

telemachus's scratchpad

by telemachus (Friar)
on Jan 10, 2008 at 18:45 UTC ( #661700=scratchpad: print w/ replies, xml ) Need Help??

use strict; use warnings; my @data = qw/foo foo1 bar bar1 blah blah1 blah2/; my @grepped = grep { $_ =~ m/foo/ || $_ =~ m/bar/ } @data; print "$_\n" for @grepped;

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2016-05-02 07:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?