Package: perl-Sub-Exporter-ForMethods (0.100055-bp160.1.12)
Helper routines for using Sub::Exporter to build methods
The synopsis section, above, looks almost indistinguishable from any other use of Sub::Exporter, apart from the use of 'method_installer'. It is nearly indistinguishable in behavior, too. The only change is that subroutines exported from Method::Builder into named slots in Vehicle::Autobot will be wrapped in a subroutine called 'Vehicle::Autobot::transform'. This will insert a named frame into stack traces to aid in debugging. More importantly (for the author, anyway), they will not be removed by namespace::autoclean. This makes the following code work: package MyLibrary; use Math::Trig qw(tan); # uses Exporter.pm use String::Truncate qw(trunc); # uses Sub::Exporter's defaults use Sub::Exporter::ForMethods qw(method_installer); use Mixin::Linewise { installer => method_installer }, qw(read_file); use namespace::autoclean; ... 1; After MyLibrary is compiled, 'namespace::autoclean' will remove 'tan' and 'trunc' as foreign contaminants, but will leave 'read_file' in place. It will also remove 'method_installer', an added win.
Package information
- Homepage
- [https://metacpan.org/release/Sub-Exporter-ForMethods]
- License
- Artistic-1.0 OR GPL-1.0-or-later
- Mantenedor del paquete downstream
- Desconocido: no consta en la fuente indexada
- Paquete fuente
- [perl-Sub-Exporter-ForMethods]
- Software project
- [libsub-exporter-formethods-perl]
Versions and downloads for perl-Sub-Exporter-ForMethods
| Version / release | Architecture / repository | Package size | Installed size | Files | Publisher repository artifact |
|---|---|---|---|---|---|
| 0.100055-bp160.1.12leap-16.0 / oss | noarchopenSUSE Leap 16.0 · OSS · multi-architecture | 21 KiB | 28 KiB | list of files | perl-Sub-Exporter-ForMethods-0.100055-bp160.1.12.noarch.rpm |
About these downloads
Cada fila es metadato del índice de paquetes para una versión, arquitectura, suite y repositorio. Nombres, URL y tamaños vienen de la fuente; un enlace es un punto de descarga que puede cambiar, no una redistribución de OpenFactory.
Dependencies and recommendations for perl-Sub-Exporter-ForMethods
dep: perl(:MODULE_COMPAT_5.42.0)
Package not available
dep: perl(Sub::Exporter) (>= 0.978)
Package not available
dep: perl(Sub::Util)
Package not available
Rutas de archivos del paquete (9)
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.42.0/Sub
- /usr/lib/perl5/vendor_perl/5.42.0/Sub/Exporter
- /usr/lib/perl5/vendor_perl/5.42.0/Sub/Exporter/ForMethods.pm
- /usr/share/doc/packages/perl-Sub-Exporter-ForMethods
- /usr/share/doc/packages/perl-Sub-Exporter-ForMethods/Changes
- /usr/share/doc/packages/perl-Sub-Exporter-ForMethods/README
- /usr/share/licenses/perl-Sub-Exporter-ForMethods
- /usr/share/licenses/perl-Sub-Exporter-ForMethods/LICENSE
- /usr/share/man/man3/Sub::Exporter::ForMethods.3pm.gz
Field source: openSUSE Leap 16.0 OSS
