Perl Monk, Perl Meditation | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Ah yes.. $tmp2 is defined with a:
So maybe because $2 from my previous regex is undef, $tmp2 becomes undef resulting in the warning.. this makes sense. So to fix this would the 'best' solution to wrap my code in an if block:
I thought 'in pattern match' literally meant within the m// As for me escaping a single quote.. I get paranoid and end up escaping everything in my regex that is not an Alphanumeric just in case :-)
In reply to Re: Re: Use of uninitialized value in pattern match (m//)
by wolis
|
|