In message <[EMAIL PROTECTED]>
Nathan Torkington <[EMAIL PROTECTED]> wrote:
> Resetting an each() should be done in some other way than calling
> keys() or values(). Perhaps reset(%hash)? I'm subfond of the current
> reset() semantics (symbol table crackheadery + single-match regexp
> resetting).
RFC136 already suggests separating keys/values from each but
doesn't currently provide an alternative way of resetting the
each iterator.
I must admit it had never occurred to me that somebody might
deliberately use keys or values to achieve that, but I guess
somebody might be relying on it without realising it.
As far as I can tell reset %x currently tries to reset any
variables which start with either % or x even though no variable
can start with %...
Tom
--
Tom Hughes ([EMAIL PROTECTED])
http://www.compton.nu/
...I can't remember where I parked my Hard Disk