Help for this page

Select Code to Download


  1. or download this
    $hash{$key} = ...;
    
    ...
    \$hash{$key}
    
    some_sub($hash{$key})   # Exception!! See footnote.
    
  2. or download this
    $ perl -e'my %h;  1 for       $h{k};  CORE::say 0+keys(%h)'
    1
    
    $ perl -e'my %h;  1 for $x // $h{k};  CORE::say 0+keys(%h)'
    0