Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: element of an array of arrays

by Anonymous Monk
on Jun 17, 2013 at 03:09 UTC ( [id://1039261]=note: print w/replies, xml ) Need Help??


in reply to Re^2: element of an array of arrays
in thread element of an array of arrays

So when I push arrays onto an empty array, that doesn't create an array of arrays ?

an array of arrays is an array of arrayrefs

When you push @arra, @array you're pushing a list onto @arra

push @arra, \@array; ## pushing arrayreference, array of arrays achieved

Replies are listed 'Best First'.
Re^4: element of an array of arrays
by Anonymous Monk on Jun 17, 2013 at 03:11 UTC
    perldoc -f push
    push ARRAY,LIST
    push EXPR,LIST
    Treats ARRAY as a stack by appending the values of LIST to the end of ARRAY. The length of ARRAY increases by the length of LIST.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-16 08:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found