Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 one hand claps...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2017-09-24 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (274 votes). Check out past polls.

    Notices?