Problems? Is your data what you think it is? | |
PerlMonks |
Re: Use of uninitialized value $_ in stringby toolic (Bishop) |
on Apr 05, 2014 at 13:33 UTC ( [id://1081241]=note: print w/replies, xml ) | Need Help?? |
my $conf = "$_";I suspect the warning is coming from that line (which is not line 32 in the code you posted). I don't think you ever set the $_ special variable before you used it. Also, there is usually no reason to place quotes around a scalar variable. Also, what you get is a warning, not an error. It appears because you use warnings;, which is a good idea because it notifies you that there is something unexpected in your code. The other errors you see are like due to coping with scoping.
In Section
Seekers of Perl Wisdom
|
|