From da41ffc5629181435ec349e6aeebfc052b334ab5 Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Tue, 22 Jun 1999 19:30:32 +0000 Subject: [PATCH] tweak RefHash to make intent clearer (suggested by John Dlugosz) p4raw-id: //depot/perl@3547 --- lib/Tie/RefHash.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Tie/RefHash.pm b/lib/Tie/RefHash.pm index 66de257..ffa9eb2 100644 --- a/lib/Tie/RefHash.pm +++ b/lib/Tie/RefHash.pm @@ -39,11 +39,11 @@ see the C entry in perlfunc(1) and perltie(1) for more information. =head1 AUTHOR -Gurusamy Sarathy gsar@umich.edu +Gurusamy Sarathy gsar@activestate.com =head1 VERSION -Version 1.2 15 Dec 1996 +Version 1.21 22 Jun 1999 =head1 SEE ALSO @@ -94,7 +94,8 @@ sub EXISTS { sub FIRSTKEY { my $s = shift; - my $a = scalar(keys %{$s->[0]}) + scalar(keys %{$s->[1]}); + keys %{$s->[0]}; # reset iterator + keys %{$s->[1]}; # reset iterator $s->[2] = 0; $s->NEXTKEY; } -- 2.7.4