Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Regex variables with delimiters

by Jack_Langsdorf (Initiate)
on May 19, 2019 at 17:58 UTC ( [id://11100260]=note: print w/replies, xml ) Need Help??


in reply to Regex variables with delimiters

I would suggest that you not use perl. grep has built in switches to handle exactly this case.

 grep -v -f file_of_filters logfile > filtered_logfile

Replies are listed 'Best First'.
Re^2: Regex variables with delimiters
by haukex (Archbishop) on May 19, 2019 at 18:43 UTC
    I would suggest that you not use perl. grep has built in switches to handle exactly this case.

    Except, of course, in the very common case that this code is part of a larger script or chain of processing, in which case calling grep as an external program has more disadvantages than just doing everything in Perl.

Log In?
Username:
Password:

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

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

    No recent polls found