The value of the hash is being incremented.

This kind of thing happens either because the programmer wants to 
count the number of that particular key value in a loop, or  is only 
concerned with storing the key, but you cannot have a hash key 
without a value, so they are just using a number for the value.

> 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?
> 
>  I would appreciate any guidance here! 
> 
>  Thanks,
> 
>  Dave G.
> 
> 
> 





Martin van-Eerde Dip. Comp. (Open)
Senior Analyst Programmer
==========================================================

Reply via email to