Tie::StdHandle did not know about 3-arg open
[p5sagit/p5-mst-13.2.git] / lib / Tie / RefHash.pm
index e9869e2..ffa9eb2 100644 (file)
@@ -39,7 +39,7 @@ see the C<tie> entry in perlfunc(1) and perltie(1) for more information.
 
 =head1 AUTHOR
 
-Gurusamy Sarathy        gsar@umich.edu
+Gurusamy Sarathy        gsar@activestate.com
 
 =head1 VERSION
 
@@ -94,6 +94,8 @@ sub EXISTS {
 
 sub FIRSTKEY {
   my $s = shift;
+  keys %{$s->[0]};     # reset iterator
+  keys %{$s->[1]};     # reset iterator
   $s->[2] = 0;
   $s->NEXTKEY;
 }