IMHO thats wrong!
Initialize a value, preferably at the moment where those variables are declared.
Either "" or 0 depending on the way it's used in the line where you got the warning from.
E.g.
DB<115> use warnings; print " $z bla" Use of uninitialized value $z in concatenation (.) or string at (eval +39)[multi_perl5db.pl:644] line 2.
Most likely means that $z is a string, so change my $z to my $z=""
Cheers Rolf
In reply to Re^2: How come undef eq '' ??
by LanX
in thread How come undef eq '' ??
by tmharish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |