Help for this page

Select Code to Download


  1. or download this
    sub pointer_to_element {
      require List::Util;
      return List::Util::reduce(sub { \($$a->{$b}) }, \shift, @_);
    }
    
  2. or download this
    while(<DATA>) {
            chomp;
    ...
            my $value = pop @chunks;
            push @{ pointer_to_element($DATA, @chunks) }, $value;
    }