Help for this page

Select Code to Download


  1. or download this
       my $h = {};
       tie %$h, "MyTie";
       $h->{KEY} = [];
       push(@{$h->{KEY}}, (qw/foo bar/));  # THIS FAILS
    
  2. or download this
       push(@{my $x = $h->{KEY}}, (qw/foo bar/));  # THIS WORKS!
    
  3. or download this
      sub TIEHASH
      {
    ...
    
          return $self;
      }