Name : perl-Sub-Exporter-Lexical
| |
Version : 1.000
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.11
| Date : 2024-08-05 19:59:34
|
Group : Unspecified
| Source RPM : perl-Sub-Exporter-Lexical-1.000-1.11.src.rpm
|
Size : 0.03 MB
| |
Packager : (none)
| |
Summary : to export lexically-available subs with Sub::Exporter
|
Description :
Sub::Exporter::Lexical provides an alternate installer for Sub::Exporter. Installers are documented in Sub::Exporter\'s documentation; all you need to know is that by using Sub::Exporter::Lexical\'s installer, you can import routines into a lexical scope that will be cleaned up when that scope ends.
There are two places it makes sense to use the lexical installer: when configuring Sub::Exporter in your exporting package or when importing from a package that uses Sub::Exporter. For the first case, do something like this:
package Some::Toolkit; use Sub::Exporter::Lexical (); use Sub::Exporter -setup => { exports => [ ... ], installer => Sub::Exporter::Lexical::lexical_installer, };
For the second:
package My::Library;
use Sub::Exporter::Lexical (); use Some::Toolkit { installer => Sub::Exporter::Lexical::lexical_installer }, qw(foo bar baz);
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-S/openSUSE_Tumbleweed/noarch |