Help for this page

Select Code to Download


  1. or download this
    $myHash{"uno"} = "one";
    $myHash{"dos"} = "two";
    ...
    $myHash{"tres"}->[1] = "three-point-one";
    $myHash{"tres"}->[2] = "three-point-two";
    $myHash{"quatro"} = "four";
    
  2. or download this
    @myArray = @{$myHash{"tres"}};   #DeRef & Copy to @myArray
    
    $myArray[3] = "three-point-three";
    $myArray[4] = "three-point-four";
    
  3. or download this
    @{$myHash{"tres"}} =  @myArray;    #Copies Array to Hash
    $myHash{"tres"} =  \@myArray;      #Copies Ref to Hash
    
  4. or download this
    \@myArray = $myHash{"tres"};