<?xml version="1.0" encoding="windows-1252"?>
<node id="1008170" title="Re^3: Problems with map(function, array)" created="2012-12-10 16:38:08" updated="2012-12-10 16:38:08">
<type id="11">
note</type>
<author id="708738">
LanX</author>
<data>
<field name="doctext">
The array is not exactly deleted, but the elements are reduced to empty strings: &lt;P&gt;

&lt;c&gt;
  DB&lt;139&gt; sub my_uc {
               my $c = shift;
               return uc($c);
           }
 
  DB&lt;140&gt; my_uc()
 
  DB&lt;141&gt; @a = map my_uc, a..c
 =&gt; ("", "", "")
&lt;/c&gt;&lt;P&gt;

keep in mind no argument means $c is undef!
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-708738"&gt;
&lt;p&gt;Cheers Rolf
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1008163</field>
<field name="parent_node">
1008168</field>
</data>
</node>
