Help for this page

Select Code to Download


  1. or download this
    #! perl
    use strict;
    ...
    printf "3. \$hashref2 %s defined\n", (defined $hashref2 ? 'IS' : 'is N
    +OT');
    my $baz = $hashref2->{bar};
    printf "4. \$hashref2 %s defined\n", (defined $hashref2 ? 'IS' : 'is N
    +OT');
    
  2. or download this
     0:43 >perl 830_SoPW.pl
    
    ...
    4. $hashref2 is NOT defined
    
     0:43 >