in reply to
Use of uninitialized value at?
one common idiom:
defined $val or $val = "";
then $val is at least defined, and no warning appears.
HTH
Comment on
Re: Use of uninitialized value at?
Download
Code
Replies are listed 'Best First'.
Re2: Use of uninitialized value at?
by
blakem
(Monsignor)
on Oct 09, 2002 at 04:09 UTC
Or, since we want to apply this rule to a list:
$_ = '' for grep !defined, @arr;
[download]
-Blake
[reply]
[d/l]
In Section
Seekers of Perl Wisdom