Package: perl-SUPER (1.20141117-1.22)
Control Superclass Method Dispatch
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. 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 ) );
Package information
- Homepage
- [http://search.cpan.org/dist/SUPER/]
- License
- Artistic-1.0 or GPL-1.0+
- Downstream package maintainer
- Unknown: not reported in the indexed source
- Source package
- [perl-SUPER]
- Software project
- [perl-SUPER]
Versions and downloads for perl-SUPER
| Version / release | Architecture / repository | Package size | Installed size | Files | Publisher repository artifact |
|---|---|---|---|---|---|
| 1.20141117-1.22leap-15.6 / oss | noarchopenSUSE Leap 15.6 · OSS · multi-architecture | 23 KiB | 31 KiB | list of files | perl-SUPER-1.20141117-1.22.noarch.rpm |
About these downloads
Each row is recorded package-index metadata for one version, architecture, suite, and repository. Names, URLs, and sizes are source-reported; a link is a potentially mutable retrieval location, not an OpenFactory redistribution claim or proof that OpenFactory retained the artifact bytes.
Dependencies and recommendations for perl-SUPER
dep: perl(:MODULE_COMPAT_5.26.1)
Package not available
dep: perl(Scalar::Util) (>= 1.20)
Package not available
dep: perl(Sub::Identify) (>= 0.03)
Package not available
Package file paths (6)
Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.
- /usr/lib/perl5/vendor_perl/5.26.1/SUPER.pm
- /usr/share/doc/packages/perl-SUPER
- /usr/share/doc/packages/perl-SUPER/Changes
- /usr/share/doc/packages/perl-SUPER/LICENSE
- /usr/share/doc/packages/perl-SUPER/README
- /usr/share/man/man3/SUPER.3pm.gz
Field source: openSUSE Leap 15.6 OSS
