Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Pushing Arrays

by ysth (Canon)
on Aug 15, 2005 at 13:57 UTC ( [id://483866]=note: print w/replies, xml ) Need Help??


in reply to Pushing Arrays

Are you sure you meant my @setargs = [ $set1, $set2 ];? If so, and you want to push additional sets onto the array that has $set1 and $set2, do push @{$setargs[0]}, whatever else;. Note that push takes a LIST of things to push; no need to loop and push them one by one.

If you really meant my @setargs = ( $set1, $set2 );, where the array containing the sets is @setargs itself, not in it's first element, just do push @setargs, whatever else;.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2025-07-15 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.