http://qs321.pair.com?node_id=379362


in reply to Failing inheritance or what can make a Child disinherited ?

I'm surprised $o->$method doesn't work, as I use it extensively. What's your OS/Perl version?

You might have to do $code->($o) to make the coderef work.

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested

Replies are listed 'Best First'.
Re^2: Failing inheritance or what can make a Child disinherited ?
by guha (Priest) on Aug 02, 2004 at 18:34 UTC

    WinXp/AS635

    Yeah, $o->$method and the other two variations work in other programs. It also works well in the test script I wrote to exercise the "feature" ;-/