Re: length of an array in a struct in an array of structs in a struct in an array of structs
- From: "Paul Lalli" <mritty@xxxxxxxxx>
- Date: 28 Jul 2005 12:42:13 -0700
Tuan Bui wrote:
> Paul Lalli wrote:
> > Tuan Bui wrote:
> > > I do know that
> > >
> > > scalar(@{@VisitArray[$i]->PSearchStructArray})
> > >
> > > will return the length of PSearchStructArray well enough though.
> >
> > Perhaps I'm having a brain cramp here, but I can't especially see how
> > that could work. The arrow notation is used for either A)
> > dereferencing a hash or array reference to get at its elements or B)
> > calling a method of an object or class.
>
> I am using Class::Struct, and indeed i am implicitly calling methods
> from it. It indeed returns the correct lengths that I want.
Ahh, when you said you had structs, you actually meant structs, as in
objects of Class::Struct. My apolgies - I kinda through that word out
as a "doesn't mean what you think it means" when I scanned your
original post.
I'm reading up on Class::Struct as we speak. Much obliged.
Paul Lalli
.
- References:
- length of an array in a struct in an array of structs in a struct in an array of structs
- From: Tuan Bui
- 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: Tuan Bui
- length of an array in a struct in an array of structs in a struct in an array of structs
- Prev by Date: Re: Perl DBI - How to handle large resultsets?
- Next by Date: Re: length of an array in a struct in an array of structs in a struct in an array of structs
- Previous by thread: Re: length of an array in a struct in an array of structs in a struct in an array of structs
- Next by thread: FAQ 1.7 How stable is Perl?
- Index(es):
Relevant Pages
|