in reply to Re^3: hashes with multiple values per key
in thread hashes with multiple values per key

not quite. Consider:

use strict; use warnings; my $foo = undef; my $bar = undef; $foo += 1; $bar = $bar + 1;

Generates the warning:

Use of uninitialized value in addition (+) at noname1.pl line 8.

Note that it is the $bar line only that generates the warning. The update assignment operators do not generate an uninitialized value warning when the left hand side is undefined, but the other non-boolean binary operators do. See perlsyn Declarations.


DWIM is Perl's answer to Gödel