Hi guys,

On Mon, 16 Jun 2003, Stas Bekman wrote:

[snip,snip]
> keys %hash;
> 
> does the trick
> 
> interesting that I don't remember this issue being reported earlier.

Probably because we all read the Camel Book, section 5.4.3, the bit
about FIRSTKEY.  All except Randal that is... :)

Most people when iterating over a hash will say something like

  foreach $scalar_name ( keys %hash_name ) { ... }

which automatically resets the iterator and is safe in a perisitent
Perl environment like mod_perl.  I hope.

73,
Ged.

Reply via email to