in reply to Re: perl string extract
in thread perl string extract

Even after your update:

if ($line =~ /logfile\s*\=\s*(.+?)\s*\,?/){
it still does not work correctly because the non-greedy (.+?) matches only the f in filename, so that $file has the value f when it should contain filename.