Benjamin J. Tilly [Sun, 5 Oct 2003 18:40:36 +0000 (18:40 +0000)]
From: "Benjamin J. Tilly" (via RT) <perlbug-followup@perl.org>
Message-Id: <rt-24120-65664.15.
9776865968429@rt.perl.org>
(Applied without $VERSION update.)
p4raw-id: //depot/perl@21404
hash C<< %{ $_[0]->[0] } >>:
package ReportHash;
- our @ISA = 'Tie::StdHash';
+ our @ISA = 'Tie::ExtraHash';
sub TIEHASH {
- my $storage = bless {}, shift;
+ my $class = shift;
+ my $storage = bless [{}, @_], $class;
warn "New ReportHash created, stored in $storage.\n";
- [$storage, @_]
+ $storage;
}
sub STORE {
warn "Storing data with key $_[1] at $_[0].\n";