Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^4: Looking for ideas on how to optimize this specialized grep

by remiah (Hermit)
on Jan 26, 2011 at 08:00 UTC ( [id://884297]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    "Spam!!!\n" if 
       $text =~ /^(?:From|To):\s*"(?!.+Furry Marmot)[^"]*" <marmot\@furryt
    +orium\.com>/m;
    
  2. or download this
    print "Spam!!!\n" if 
        $text =~ /(?=^From:[^\n]+marmot\@furrytorium\.com).+^To:[^\n]marmo
    +t\@furrytorium\.com/ms;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-19 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found