or if you prefer...$array[0]{'key'} = "testline"; $item = $array[0]; print $item->{key}; #will print "testline"
Cheers,%item = %{$array[0]}; print $item{key};
In reply to Re: Reference to a hash in an array of hashes
by benn
in thread Reference to a hash in an array of hashes
by vlad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |