Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Golf/Perlish solution to this problem?

by rir (Vicar)
on Jan 31, 2008 at 17:02 UTC ( #665390=note: print w/replies, xml ) Need Help??


in reply to Golf/Perlish solution to this problem?

I appreciate BrowserUk's nifty answer, but I'd keep it simple:
while ( @ar ) { push @result, pop(@ar), shift(@ar), shift(@ar), pop(@ar); }
Be well,
rir

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://665390]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2021-01-24 04:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?