in reply to Golf/Perlish solution to this problem?
while ( @ar ) { push @result, pop(@ar), shift(@ar), shift(@ar), pop(@ar); } [download]