Dependency of nagios-plugins-nwc-health-8.0-1.1.src.rpm
Name: perl-Sub-Exporter-ForMethods
Project: openSUSE_13.2
Repository: oss
Title: helper routines for using Sub::Exporter to build methods
Description:
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.
Version: 0.100051
Release: 2.1.3
Architecture: noarch
Size: 15.7 KB
Build Time: 2014-10-06 18:18:52 +0200 (over 9 years ago)
Provides
Symbol | Required by |
---|---|
perl(Sub::Exporter::ForMeth... | perl-Dist-Zilla perl-MooseX-Daemonize |
perl-Sub-Exporter-ForMethod... |
Requires
Symbol | Provided by |
---|---|
perl(:MODULE_COMPAT_5.20.1) | perl |
perl(Sub::Exporter) >= 0.978 | perl-Sub-Exporter |
perl(Sub::Name) | perl-Sub-Name |