Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 rifling through the Monastery: (9)
As of 2014-09-02 12:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (22 votes), past polls