in reply to Variable problem inside an array

You don't show us what value $grepstring has. But if the value of $grepstring looks like Perl code, it most certainly won't do what you seem to think it does.

Maybe you can take a step back and tell us what goal you want to achieve?

Replies are listed 'Best First'.
Re^2: Variable problem inside an array
by bittoni (Initiate) on Apr 15, 2009 at 15:33 UTC
    Hi Corion Sorry the output of $grepstring is
    (!/243001/) && (!/454097/) && (!/858035/) && (!/872937/) && (!/427199/)
    What i am trying to achieve is a log file filter using a text file for the filter. I am trying to output a filtered log file that doesnt display the lines/error id's that are logged in the text file, so that rather than hard coding it, we can easily add new ones to filter out by adding a line into the file. Hope this helps. Thanks for your help so far