in reply to how to push 5th element from one array to another array
Update: See gmargo's (++) correction below.my @fifth = @arr[ map {$_*5-1} 1..$#arr+4/5 ];
Potentia vobiscum ! (Si hoc legere scis nimium eruditionis habes)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to push 5th element from one array to another array
by gmargo (Hermit) on Oct 28, 2009 at 02:29 UTC |