Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Need RegExp help - doing an AND match - use grep instead

by imp (Priest)
on Jul 01, 2007 at 13:33 UTC ( [id://624298]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @words   = qw( foo bar );
    while (my $line = <DATA>) {
        chomp $line;
    ...
    foo
    bar
    foo bar
    
  2. or download this
    use List::Util qw( first );
    my @words   = qw( foo bar );
    while (my $line = <DATA>) {
    ...
    foo
    bar
    foo bar
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-18 02:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found