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.