in reply to Re: Re: My first Perl module...
in thread My first Perl module...

$hash{key} refers to the 'key' element of the hash called %hash. $hash->{key} refers to the 'key' element of the hash referred to in the reference $hash. $hash has nothing to do with %hash. Check out perlref and other documentation mentioned by others.