Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: push(@ary,\%hash)

by shadox (Priest)
on Oct 23, 2001 at 19:14 UTC ( #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
Node Status?
node history
Node Type: note [id://120810]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2015-07-30 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls