Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by ikegami (Patriarch)
on Oct 27, 2009 at 20:46 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (7)
As of 2024-04-24 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found