Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Got it, sort of (Re: Array of hashes problem)

by hdp (Beadle)
on Apr 26, 2001 at 06:47 UTC ( #75696=note: print w/replies, xml ) Need Help??


in reply to Got it, sort of (Re: Array of hashes problem)
in thread Getting information from an array of hashes

Glad to see you've figured out what this is.

A little easier to write, and much easier to read, would be:

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"; }
If specifically testing for the user key is important, add a next unless $hashref->{user} or something.

hdp.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://75696]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2023-09-26 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?