Given a hash like this, and using warnings:
my %hash = ( a => undef, b => 'foo', c => undef );I naturally get two Use of uninitialized value warnings if I do:
print "$_ => $hash{$_}\n" for keys %hash;I understand that. How come, then, the following generates no warnings at all?:
print "$hash{$_} <= $_\n" for keys %hash;TIA
dave
In reply to "Use of uninitialized value" question by Not_a_Number
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |