The stupid question is the question not asked | |
PerlMonks |
Re^4: Perl Idioms Explained - keys %{{map{$_=>1}@list}}by pilcrow (Sexton) |
on Mar 02, 2005 at 06:54 UTC ( [id://435713]=note: print w/replies, xml ) | Need Help?? |
perlfunc's entry for undef suggests this behavior on slices, if one squints:
Undefines the value of EXPR, which must be an lvalue... Saying undef $hash{$key} will probably not do what you expect...That is, taking "undef EXPR" as (usually) equivalent to "EXPR = undef", the behavior is sensible, even expected. At any rate, a warning seems inappropriate, as this feature is long-standing:
In Section
Meditations
|
|