Name : perl-Attribute-Storage
| |
Version : 0.10
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.26
| Date : 2024-08-29 00:23:12
|
Group : Unspecified
| Source RPM : perl-Attribute-Storage-0.10-1.26.src.rpm
|
Size : 0.06 MB
| |
Packager : (none)
| |
Summary : declare and retrieve named attributes about CODE
|
Description :
This package provides a base, where a package using it can define handlers for particular code attributes. Other packages, using the package that defines the code attributes, can then use them to annotate subs.
This is similar to \'Attribute::Handlers\', with the following key differences:
* \'Attribute::Storage\' will store the value returned by the attribute handling code, and provides convenient lookup functions to retrieve it later. \'Attribute::Handlers\' simply invokes the handling code.
* \'Attribute::Storage\' immediately executes the attribute handling code at compile-time. \'Attribute::Handlers\' defers invocation so it can look up the symbolic name of the sub the attribute is attached to. \'Attribute::Storage\' uses B to provide the name of the sub at invocation time, using the name of the underlying \'GV\'.
* \'Attribute::Storage\' works just as well on anonymous subs as named ones.
* \'Attribute::Storage\' is safe to use on code that will be reloaded, because it executes handlers immediately. \'Attribute::Handlers\' will only execute handlers at defined phases such as \'BEGIN\' or \'INIT\', and cannot reexecute the handlers in a file once it has been reloaded.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-A/openSUSE_Tumbleweed/x86_64 |