There's more than one way to do things | |
PerlMonks |
Re^2: perl string extractby eyepopslikeamosquito (Archbishop) |
on Oct 04, 2010 at 07:07 UTC ( [id://863278]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|