Help for this page

Select Code to Download


  1. or download this
    #use strict;
    #use warnings;
    ...
    %$h = (name => "Jim", age => 34);
    print $h->{name}, "\n";
    print $fred{age}, "\n";
    
  2. or download this
    Jim
    34
    
  3. or download this
    use strict;
    use warnings;
    ...
    %$h = (name => "Jim", age => 34);
    print $h->{name}, "\n";
    print $fred{age}, "\n";
    
  4. or download this
    Can't use string ("fred") as a HASH ref while "strict refs" in use at 
    +pbeck2 line 8.
    
  5. or download this
    use strict;
    use warnings;
    ...
        print $h->{name}, "\n";
    }
    print $fred{age}, "\n";
    
  6. or download this
    Jim
    34