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.
In reply to Re: Accessing an array of structs
by ferreira
in thread Accessing an array of structs
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |