Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Accessing an array of structs

by ferreira (Chaplain)
on Apr 04, 2007 at 13:43 UTC ( #608277=note: print w/replies, xml ) Need Help??


in reply to Accessing an array of structs

What are those "structs"? Real C structs passed by some C binding or just hash refs? In the first case, the issue is more complicated and may involve unpack and a few tweaks until the right data is visible to Perl (not necessarily in a portable way). In the second change, replace $structs[0]->name with $structs[0]->{name} and you'll be fine.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2019-10-19 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?