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.
In reply to Re^2: perl string extract
by eyepopslikeamosquito
in thread perl string extract
by anu_1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |