Re: length of an array in a struct in an array of structs in a struct in an array of structs



Tuan Bui wrote:
> Paul Lalli wrote:
> > Billy N. Patton wrote:
> >
> > > Ths should do it.
> > >
> > > $l=scalar(@{$VisitArray[$i]->PSearchStructArray[$j]->ClickPathArray});
> >
> > Assuming the above does what you want,
> >
> > $l = @{$VisitArray[$i]->PSearchStructArray[$j]->ClickPathArray};
> >
> > should work just as well.
>
> If by "just as well" you mean "syntax error," then yes :) It's one of
> the first things I tried.

Wait. Do you actually mean that the first line of code above, from
Billy Patton, does work, but that the second line of code, from me,
does not?

What syntax error does the second give that the first does not?

Paul Lalli

.



Relevant Pages