On Mar 19, 2015 9:30 PM, "Brandon Allbery" <allber...@gmail.com> wrote:
>
> On Thu, Mar 19, 2015 at 10:26 PM, Tom Browder <tom.brow...@gmail.com>
wrote:
>>
>> On Mar 19, 2015 8:58 PM, "Brandon Allbery" <allber...@gmail.com> wrote:
>> > On Thu, Mar 19, 2015 at 9:32 PM, Tom Browder <tom.brow...@gmail.com>
wrote:
>> >>
>> >>     if (self.$elem) { # <======= LINE 995 =============== LINE 995
>> > This is an indirect method call. Is that really what you intended?
>>
>> No, it's supposed to be the value of the self attribute whose name is
the value of my $elem.  I have to go back and see how to do that.
>
> Unless there is more that you didn't show, that function is not a method
and has no `self`.

Why do you say that is not a method?  The first line says iAs I mentioned,
if you *do* have an object reference `self` in scope somehow and want to
access a `has $elem` defined within it, you use the automatically generated
accessor `self.elem`. (If it was declared private, that is `has $!elem`,
then I don't think you can get to it within that function unless it was
passed in as a parameter.)
>
>
> --
> brandon s allbery kf8nh                               sine nomine
associates
> allber...@gmail.com
ballb...@sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad
http://sinenomine.net

Reply via email to