summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Tie/Hash.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Tie/Hash.pm b/lib/Tie/Hash.pm
index 282006984b..397272bece 100644
--- a/lib/Tie/Hash.pm
+++ b/lib/Tie/Hash.pm
@@ -136,12 +136,13 @@ element being a hash reference, and the remaining methods should operate on the
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";