Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 rifling through the Monastery: (9)
As of 2014-12-23 02:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (133 votes), past polls