in reply to Accessing an array of structs

I think you want $structs[0]->{name} (the $structs[0]->name looks to Perl like $structs[0]->name(), that is, a method call on the first element of @structs).