Dependency of nagios-plugins-nwc-health-8.0-1.1.src.rpm
Name: perl-SUPER
Project: openSUSE_13.2
Repository: oss
Title: control superclass method dispatch
Description:
When subclassing a class, you occasionally want to dispatch control to the
superclass -- at least conditionally and temporarily. The Perl syntax for
calling your superclass is ugly and unwieldy:
$self->SUPER::method(@_);
especially when compared to its Ruby equivalent:
super;
It's even worse in that the normal Perl redispatch mechanism only
dispatches to the parent of the class containing the method _at compile
time_. That doesn't work very well for mixins and roles.
This module provides nicer equivalents, along with the universal method
'super' to determine a class' own superclass. This allows you to do things
such as:
goto &{$_[0]->super('my_method')};
if you don't like wasting precious stack frames. (Because 'super' returns a
coderef, much like the UNIVERSAL/can manpage, this doesn't break 'use
strict 'refs''.)
If you are using roles or mixins or otherwise pulling in methods from other
packages that need to dispatch to their super methods, or if you want to
pass different arguments to the super method, use the 'SUPER()' method:
$self->SUPER( qw( other arguments here ) );
Version: 1.20120705
Release: 2.1.3
Architecture: noarch
Size: 18.1 KB
Build Time: 2014-10-06 16:47:40 +0200 (over 9 years ago)
Provides
Symbol | Required by |
---|---|
perl(SUPER) = 1.20120705 | |
perl-SUPER = 1.20120705-2.1.3 |
Requires
Symbol | Provided by |
---|---|
perl(:MODULE_COMPAT_5.20.1) | perl |
perl(Scalar::Util) >= 1.20 | perl-base-32bit perl-base perl-Scalar-List-Utils |
perl(Sub::Identify) >= 0.03 | perl-Sub-Identify |