>>>>> "Brett" == Brett W McCoy <[EMAIL PROTECTED]> writes:
Brett> On Mon, 18 Jun 2001, David Gilden wrote:
>> I am having trouble understanding just what the following does,
>> and how to you use it:
>>
>> $hash{$_}++
>>
>> i.e. are we increment the value or the key?
Brett> The value. If you wanted to increment the key, you would say
Brett> "$hash{$key++}".
No. Perhaps you want
$hash{$key + 1} = delete $hash{$key};
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!