Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    print '$hash{a} ',     ( $hash{a}            ) ? "true"    : "not true
    +";
    print '$hash{a} ',     ( defined $hash{a}    ) ? "defined" : "not defi
    +ned";
    print '$hash{a} ',     ( exists $hash{a}     ) ? "exists"  : "doesn't 
    +exist";
    
  2. or download this
    $hash{a} not true
    $hash{a} not defined
    ...
    $hash{a} true
    $hash{a} defined
    $hash{a} exists