Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: splitting arrays

by sh1tn (Priest)
on Apr 15, 2005 at 14:20 UTC ( [id://448171]=note: print w/replies, xml ) Need Help??


in reply to splitting arrays

What's wrong with splice?
my @A = 11..40; my $start = 0; my $stop = 5; print((splice@A, $start, $stop),$/) while @A; __END__ STDOUT: 1112131415 1617181920 2122232425 2627282930 3132333435 3637383940


Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-19 02:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found