Think about Loose Coupling | |
PerlMonks |
Re^2: perl string extractby eyepopslikeamosquito (Archbishop) |
on Oct 04, 2010 at 06:41 UTC ( [id://863270]=note: print w/replies, xml ) | Need Help?? |
Your regex: if ($line =~ /logfile\s*\=\s*(.+?)\s*\,/){unilaterally matches a comma and so does not seem to match the OP's requirement to match with or without a comma.
In Section
Seekers of Perl Wisdom
|
|