Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: splitting arrays

by Taulmarill (Deacon)
on Apr 15, 2005 at 13:22 UTC ( [id://448150]=note: print w/replies, xml ) Need Help??


in reply to splitting arrays

this will destroy your old array, but should give you the result you want
use strict; use warnings; my @bigArry = 0 .. 99; my $max = 17; my @sliced; push @sliced, [ splice @bigArry, 0, $max ] while @bigArry; use Data::Dumper; print Dumper \@sliced;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 20:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found