in reply to Re: playing with map
in thread playing with map
Consider this to see the difference:@new = (); for (@old) { push @new, act_on($_); }
The first element becomes 10 elements of output, the second becomes 11, and so on.@old = (10..20); sub act_on { return 1..$_; }
-- Randal L. Schwartz, Perl hacker
|
|---|