in reply to determine the variable causing the error: Use of uninitialized value
In most cases you get told which variable causes the problem in which line.
Prepending something like $var//=""; is a quick fix if you receive the variable from an uncontrolled source.
Otherwise try initializing strings, like my $str=""
From a general perspective:
This warning is probably the most disputed, if you just want to silence it in your scope, try
HTH!
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|