<?xml version="1.0" encoding="windows-1252"?>
<node id="435713" title="Re^4: Perl Idioms Explained - keys %{{map{$_=&gt;1}@list}}" created="2005-03-02 01:54:38" updated="2005-08-12 10:13:57">
<type id="11">
note</type>
<author id="435709">
pilcrow</author>
<data>
<field name="doctext">
&lt;tt&gt;perlfunc&lt;/tt&gt;'s entry for &lt;tt&gt;undef&lt;/tt&gt; suggests this behavior on slices, if one squints: 

&lt;blockquote&gt;
Undefines the value of EXPR, which must be an lvalue... Saying undef $hash{$key} will probably not do what you expect...
&lt;/blockquote&gt;

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:

&lt;code&gt;
$ perl -le 'undef @h{qw|a b c|}; print "$]: ", join " ", keys %h'
5.00404: a b c
&lt;/code&gt;</field>
<field name="root_node">
280658</field>
<field name="parent_node">
435223</field>
</data>
</node>
