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);