Help for this page

Select Code to Download


  1. or download this
    %$hash_ref or return;
    
  2. or download this
    %$hash_ref or return undef;
    
  3. or download this
    keys %$hash_ref; # reset iterator
    
  4. or download this
    18:30 >perl -MData::Dump -wE "sub f { return (17, 42); } my %h = ( key
    +1 => (f())[0] // undef ); dd \%h;"
    { key1 => 17 }
    ...
    { key1 => undef }
    
    18:30 >