|
|
| go ahead... be a heretic | |
| PerlMonks |
Re: Use of uninitialized value in pattern match (m//)by sauoq (Abbot) |
| on May 23, 2012 at 22:39 UTC ( #972122=note: print w/ replies, xml ) | Need Help?? |
|
If this is the exact code you had on your windows box, you likely had a bug there too, even if you never noticed it. The problem looks like you are matching against $_ in your eslif condition when you want to be matching against $str. Change that line to:
-sauoq "My two cents aren't worth a dime.";
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||