length of an array in a struct in an array of structs in a struct in an array of structs
- From: "Tuan Bui" <bigtrick@xxxxxxxxx>
- Date: 28 Jul 2005 08:43:21 -0700
Hello,
So I have this complex data structure I've built for myself, and I'm
trying to get this snippet to work:
$k <
scalar(@{@{@VisitArray[$i]->PSearchStructArray[$j]->ClickPathArray}})
VisitArray is an array of VisitStructs. Each VisitStruct contains an
array of PSearchStructs called PSearchStructArray. Each PSearchStruct
contains an array called ClickPathArray. I'm trying to get the length
of ClickPathArray out. I've tried numerous variations of that line, and
none of them work. I do know that
scalar(@{@VisitArray[$i]->PSearchStructArray})
will return the length of PSearchStructArray well enough though.
I'm helplessly floundering here - hope one of you perl hackers can
help. Anyone who does help will earn my undying gratitude :)
Tuan
.
- Follow-Ups:
- Re: length of an array in a struct in an array of structs in a struct in an array of structs
- From: Paul Lalli
- Re: length of an array in a struct in an array of structs in a struct in an array of structs
- From: Billy N. Patton
- Re: length of an array in a struct in an array of structs in a struct in an array of structs
- From: it_says_BALLS_on_your forehead
- Re: length of an array in a struct in an array of structs in a struct in an array of structs
- Prev by Date: Re: can't run perl commands from command line
- Next by Date: Re: can't run perl commands from command line
- Previous by thread: can't run perl commands from command line
- Next by thread: Re: length of an array in a struct in an array of structs in a struct in an array of structs
- Index(es):