On Mon, 18 Jun 2001, Peter Scott wrote:
> >Ya kow, I saw that when I sent it. I think ++$key would be more
> >appropriate.
>
> No, that would:
>
> 1. Increment $key
> 2. Access $hash{$key} # new $key
Right, that's what I was implying -- two different keys, two different
values.
> You can't change a key in a hash. You can only access its value, or
> delete it.
You would have to assume that not only does $key produce a value, but that
++$key does also -- I was getting at accessing two values that have keys
that differ by 1. Of course, if you really want to access data this way,
an array would make more sense.
-- Brett
http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
Do not try to solve all life's problems at once -- learn to dread each
day as it comes.
-- Donald Kaul