Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    say $hash{key1}->{key2};
    
    __END__
    
  2. or download this
    val2
    val2
    val1
    val1
    
  3. or download this
    my @hash  = ("key3", "val3", "key4", "val4"); # actual ARRAY
    my %hash3 = @hash; # even sized (2, 4, etc) list assignment works
    say $hash3{key3};
    say $hash3{key4};
    
  4. or download this
    val3
    val4