Syntactic Confectionery Delight | |
PerlMonks |
Re: Re: (my?) problem with re-blessed references(?)by BrowserUk (Patriarch) |
on Dec 13, 2002 at 06:51 UTC ( [id://219519]=note: print w/replies, xml ) | Need Help?? |
Nice. I looked for a way to do that but I've never used can so didn't think of that. I had to change it slightly to $func->($self) = $value; to accomodate the lvalue accessor/mutators but it seems to work fine. It does however make something change in as much as in now only get three lines of output, which suggests that the loop pushing instances is now empty, which is strange as I haven't edited that file at all, but I'll try and work out what else changed tomorrow, for now its time to sleep. Your probably right that the is no real purpose to QuotePlus except to explore the inheritance mechanism. If I just moved the data attribute into the Quote class, the problem goes away, but that defeats the purpose of my exploration :^). Thanks a lot for your help. BrowserUk. Examine what is said, not who speaks.
In Section
Seekers of Perl Wisdom
|
|