projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8b5a1e
)
PATCH: Tie::SubstrHash
author
Hugo van der Sanden
<hv@crypt.org>
Thu, 4 Oct 2001 12:12:41 +0000
(13:12 +0100)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Thu, 4 Oct 2001 14:02:17 +0000
(14:02 +0000)
Message-Id: <
200110041112
.f94BCfS17390@crypt.compulink.co.uk>
p4raw-id: //depot/perl@12336
lib/Tie/SubstrHash.pm
patch
|
blob
|
history
diff --git
a/lib/Tie/SubstrHash.pm
b/lib/Tie/SubstrHash.pm
index cd1125eab852886cca463b8cd7655a5031ef349f..476dd686787d83613ba2d928c9d6d352082fedc6 100644
(file)
--- a/
lib/Tie/SubstrHash.pm
+++ b/
lib/Tie/SubstrHash.pm
@@
-47,7
+47,7
@@
sub TIEHASH {
my $rlen = 1 + $klen + $vlen;
$tsize = [$tsize,
findgteprime($tsize * 1.1)]; # Allow 10% empty.
- $self = bless ["\0", $klen, $vlen, $tsize, $rlen, 0, -1];
+
local
$self = bless ["\0", $klen, $vlen, $tsize, $rlen, 0, -1];
$$self[0] x= $rlen * $tsize->[1];
$self;
}