wolis has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I have search PerlMonks and found questions and answers on all things Use of uninitialized value.. but none refer to pattern matching.
Now this warning logically makes sence, I have not initialise a variable in my regex.
then you look at the if regex it complained about:
if($tmp2 =~ m/\'/) { $tmp2 =~ s/\'/\\\'/g; # escape the single quotes.. }
How can I initialise the single quote? Should I be definding a var and using that in my regex? is this important?
Thanks,
___ /\__\ "What is the world coming to?" \/__/ www.wolispace.com
Back to
Seekers of Perl Wisdom