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

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;

    -Blake