Erm, %{$hashref}->{'key'} has some extra line noise in it. You'd really want either $car->{'key'}, or alternately ${ $car }{ 'key' }. You don't use the hash sigil when accessing a single element, just like you don't use @array[$idx] to access a single element from an array.</nit>
In reply to Re^2: Hash from package
by Fletch
in thread Hash from package
by Yoda_Oz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |