Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: push(@ary,\%hash)

by shadox (Priest)
on Oct 23, 2001 at 19:14 UTC ( [id://120810]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @ary = (\%hash);
    
  2. or download this
    %hash = ( 'foo' => 'bar', 1 => 2 );
    # with this line
    ...
    # But if you just want to get all the values from the hash 
    #to the array, just remove the "\" when you assign it
    @ary = (%hash);
    

Log In?
Username:
Password:

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

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

    No recent polls found