in reply to Re^3: Object Method Call
in thread Object Method Call

That usually occurs when you're overriding a method, in which case $self->SUPER::display(); will do the trick.

Replies are listed 'Best First'.
Re^5: Object Method Call
by afoken (Chancellor) on Jul 27, 2009 at 19:54 UTC

    Yes, SUPER:: is the usual way to access the super method. But the evil trick of invoking a method as a function with the object as first argument is different. It completely prevents overriding that method, no matter how deep the inheritance tree is. I know it is evil, confuses everyone, and is a sure sign of a broken design. But in very rare cases, it can be useful, even if it breaks the design even more. See Re^5: Object Method Call.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)