A little easier to write, and much easier to read, would be:
If specifically testing for the user key is important, add a next unless $hashref->{user} or something.for $hashref (@{$diary_data[0]}) { print "User:\t\t$hashref->{user}\n"; print "Timestamp:\t$hashref->{timestamp}\n"; print "Information:\t$hashref->{value}\n\n"; }
hdp.
In reply to Re: Got it, sort of (Re: Array of hashes problem)
by hdp
in thread Getting information from an array of hashes
by chumley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |