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 musing on the Monastery: (9)
As of 2014-09-19 18:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (144 votes), past polls