Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Accessing an array of structs

by ferreira (Chaplain)
on Apr 04, 2007 at 13:43 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://608277]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2024-04-23 08:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found