This function calls the super method of the currently-executing method, no
matter where the super method is in the hierarchy.
This takes no arguments; it passes the same arguments passed to the currently-executing method.
The module exports this function by default.
Note: you must have the appropriate package declaration in place for this to work. That is, you must have compiled the method in which you use this function in the package from which you want to use it. Thems the breaks with Perl 5.
|find_parent( $class, $method, $prune, $invocant )||
Attempts to find a parent implementation of $method starting with $class.
If you pass $prune, it will not ignore the method found in that package, if
it exists there. Pass $invocant if the object itself might have a different
idea of its parents.
The module does not export this function by default. Call it directly.
|get_all_parents( $invocant, $class )||Returns all of the parents for the $invocant, if it supports the __get_parents() method or the contents of @ISA for $class. You probably oughtnt call this on your own.|
|SUPER()||Calls the super method of the currently-executing method. You can pass arguments. This is a method.|
Beware: if you do weird things with code generation, be sure to name your anonymous subroutines. See Perl Hacks #57.
Using super doesnt let you pass alternate arguments to your superclasss method. If you want to pass different arguments, use SUPER instead. Doh.
This module does a small amount of Deep Magic to find the arguments of method calling super() itself. This may confuse tools such as Devel::Cover.
In your own code, if you do complicated things with proxy objects and the like, define __get_parents() to return a list of all parents of the object to which you really want to dispatch.
Created by Simon Cozens, firstname.lastname@example.org. Copyright (c) 2003 Simon Cozens.
Maintained by chromatic, <chromatic at wgz dot org> after version 1.01. Copyright (c) 2004-2009 chromatic.
Thanks to Joshua ben Jore for bug reports and suggestions.
You may use and distribute this silly little module under the same terms as Perl itself.
|perl v5.20.3||SUPER (3)||2016-04-03|