Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2014-09-22 01:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (176 votes), past polls