Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

•Re: Making little array babies

by merlyn (Sage)
on Apr 12, 2004 at 11:25 UTC ( [id://344354]=note: print w/replies, xml ) Need Help??


in reply to Making little array babies

First, you really don't want named arrays like FOO1, FOO2, FOO3. You'll probably want those as arrayrefs in a master array. Presuming that, this'll do:
my @copy = @images; my @result; push @result, [splice @copy, 0, 3] while @copy;

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://344354]
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: (5)
As of 2024-03-28 22:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found