How to Install and Uninstall perl-Sub-Exporter-ForMethods Package on openSUSE Leap
Last updated: December 25,2024
1. Install "perl-Sub-Exporter-ForMethods" package
Please follow the guidance below to install perl-Sub-Exporter-ForMethods on openSUSE Leap
$
sudo zypper refresh
Copied
$
sudo zypper install
perl-Sub-Exporter-ForMethods
Copied
2. Uninstall "perl-Sub-Exporter-ForMethods" package
Please follow the guidelines below to uninstall perl-Sub-Exporter-ForMethods on openSUSE Leap:
$
sudo zypper remove
perl-Sub-Exporter-ForMethods
Copied
3. Information about the perl-Sub-Exporter-ForMethods package on openSUSE Leap
Information for package perl-Sub-Exporter-ForMethods:
-----------------------------------------------------
Repository : Main Repository
Name : perl-Sub-Exporter-ForMethods
Version : 0.100055-bp155.1.6
Arch : noarch
Vendor : openSUSE
Installed Size : 28.4 KiB
Installed : No
Status : not installed
Source package : perl-Sub-Exporter-ForMethods-0.100055-bp155.1.6.src
Upstream URL : https://metacpan.org/release/Sub-Exporter-ForMethods
Summary : 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.
-----------------------------------------------------
Repository : Main Repository
Name : perl-Sub-Exporter-ForMethods
Version : 0.100055-bp155.1.6
Arch : noarch
Vendor : openSUSE
Installed Size : 28.4 KiB
Installed : No
Status : not installed
Source package : perl-Sub-Exporter-ForMethods-0.100055-bp155.1.6.src
Upstream URL : https://metacpan.org/release/Sub-Exporter-ForMethods
Summary : 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.