Help for this page

Select Code to Download


  1. or download this
    ...
    $$arrayref[0] = "January";
    $$hashref{"KEY"} = "VALUE"; # deref the hash, assign a key
    &$coderef(1,2,3);
    ...
    
  2. or download this
    ...
    ${$arrayref}[0] = "January";
    ${$hashref}{"KEY"} = "VALUE"; # same as above, differet syntax
    &{$coderef}(1,2,3);
    ...
    
  3. or download this
    $arrayref->[0] = "January";
    $hashref->{"KEY"} = "VALUE"; # still the same, witha arrow operator
    $coderef->(1,2,3);