Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: how to push 5th element from one array to another array

by ikegami (Patriarch)
on Oct 27, 2009 at 20:46 UTC ( #803518=note: print w/replies, xml ) Need Help??


in reply to how to push 5th element from one array to another array

And now for something completely different

my @array = ...; splice(@array, $_, 4) for 0..$#array/5; print("@array\n");

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2022-12-07 06:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?