2. $calhash{$key} is the value in %calhash which the key $key points to. I'm assigning it a new value $value. Later, if I want the key and value again (like in the printing loop), I'll refer to $key and $calhash{$key}.
The syntax for Variable Names is covered in perldata of the perl documentation.
buckaduck
In reply to Re: Re: Re: Hash sorting
by buckaduck
in thread Hash sorting
by jamen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |