Help for this page

Select Code to Download


  1. or download this
      # As long as we have multiple keys, access the next subhash
       while (@keys > 1) {
          my $key = shift @keylist;
          $hashref = $hashref->{$key};
       }
    
  2. or download this
    while (@keylist > 1) {
        my $key = shift @keylist;
        $hashref = $hashref->{$key};
    }
    
  3. or download this
    use strict;
    use warnings;
    ...
    [a1-a2-a3]
    [jjj-kkk-lll-mmm]
    {}
    
  4. or download this
    Output:
    [a1-a2-a3]
    [jjj-kkk-lll-mmm]
    ...
      a1  => { a2 => { a3 => 1 } },
      jjj => { kkk => { lll => { mmm => 2 } } },
    }