Help for this page

Select Code to Download


  1. or download this
    %var       - Hash
    $var{$key} - Hash element
    $var       - Scalar. No relation to %var
    
  2. or download this
    return &Y::module_subroutine($hash_to_send);
    
    ...
       return "The colour of the sky is ".
              $hash{third_colour};
    }
    
  3. or download this
    return &Y::module_subroutine(%hash_to_send);  <--- Use the right var
    
    ...
       return "The colour of the sky is ".
              $hash{third_colour};
    }
    
  4. or download this
    return &Y::module_subroutine(\%hash_to_send);  <--- Pass reference
    
    ...
       return "The colour of the sky is ".
              $hash->{third_colour};               <--- Must dereference
    }