Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: print array of hashes

by ungalnanban (Pilgrim)
on Apr 22, 2010 at 12:31 UTC ( #836241=note: print w/replies, xml ) Need Help??


in reply to print array of hashes

See the following Example:
my @rec = ( { name => 'Nancy', address => 613, kids => [abc, def] }, . . ); . . print scalar(@{$rec[0]->{kids}});
--$ugum@r--

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://836241]
help
Chatterbox?
[stevieb]: beech already found a thing I don't like... it'll take time to sort out some new methods to deal with little/big endian ;)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2017-07-22 00:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (336 votes). Check out past polls.