Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Pushing Arrays

by ysth (Canon)
on Aug 15, 2005 at 13:57 UTC ( #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? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2023-03-30 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (74 votes). Check out past polls.

    Notices?