P is for Practical | |
PerlMonks |
Re: Object Access Issueby Bloodnok (Vicar) |
on Mar 19, 2014 at 11:21 UTC ( [id://1078930]=note: print w/replies, xml ) | Need Help?? |
That looks rather like a representation of the aggregate/composite pattern - a list being an object (which, as tobyink has already pointed out, has an unusual name - LocalLB::ObjectStatus[]) which itself contains a number of other objects (of class LocalLB::ObjectStatus).
In order to access the contained objects, I suggest that you have a look at the containing class (LocalLB::ObjectStatus[]) to determine the name(s) of the accessor methods - which will, I would guess, follow the form of the GoF Iterator pattern e.g. get_next(), has_next() etc. HTH ,
A user level that continues to overstate my experience :-))
In Section
Seekers of Perl Wisdom
|
|