in reply to What would you do?
I am wondering if there is any difference in efficiency for Perl?# set even numbered elements of the list to hi<br> map { $list [$_ * 2] = 'hi'; } (0..$#list/2);<br><br>
Edit 2001-03-16 by tye
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: What would you do?
by MeowChow (Vicar) on Mar 17, 2001 at 02:38 UTC |