in reply to how to push 5th element from one array to another array
Slicy (Pretty efficient):
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)
In Section
Seekers of Perl Wisdom