Fri, 10 Apr 2026 14:51:34 CST | login

Information for RPM perl-Context-Preserve-0.03-3.oc9.noarch.rpm

ID211891
Buildperl-Context-Preserve-0.03-3.oc9
Nameperl-Context-Preserve
Version0.03
Release3.oc9
Epoch
Archnoarch
DraftFalse
SummaryRun code after a subroutine call, preserving the context
DescriptionSometimes you need to call a function, get the results, act on the results, then return the result of the function. This is painful because of contexts; the original function can behave different if it's called in void, scalar, or list context. You can ignore the various cases and just pick one, but that's fragile. To do things right, you need to see which case you're being called in, and then call the function in that context. This results in 3 code paths, which is a pain to type in (and maintain). This module automates the process. You provide a code reference that is the "original function", and another code reference to run after running the original. You can modify the return value (aliased to @_) here, and do whatever else you need to do. 'wantarray' is correct inside both code references; in "after", though, the return value is ignored and the value 'wantarray' returns is related to the context that the original function was called in.
Build Time2024-07-25 13:30:34 GMT
Size21.53 KB
46b3862d89bb617aa64e30a79a36bdfb
LicenseGPL-1.0-or-later OR Artistic-1.0-Perl
Buildrootdist-oc9-epol-build-85852-57554
Provides
perl(Context::Preserve) = 0.03
perl-Context-Preserve = 0.03-3.oc9
Obsoletes No Obsoletes
Conflicts No Conflicts
Requires
perl(Carp)
perl(Exporter)
perl(base)
perl(strict)
perl(warnings)
perl-libs
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1
Recommends No Recommends
Suggests No Suggests
Supplements No Supplements
Enhances No Enhances
Files
1 through 9 of 9
Name ascending sort Size
/usr/share/doc/perl-Context-Preserve0.00 B
/usr/share/doc/perl-Context-Preserve/CONTRIBUTING3.57 KB
/usr/share/doc/perl-Context-Preserve/Changes271.00 B
/usr/share/doc/perl-Context-Preserve/README479.00 B
/usr/share/licenses/perl-Context-Preserve0.00 B
/usr/share/licenses/perl-Context-Preserve/LICENCE17.94 KB
/usr/share/man/man3/Context::Preserve.3pm.gz2.41 KB
/usr/share/perl5/vendor_perl/Context0.00 B
/usr/share/perl5/vendor_perl/Context/Preserve.pm4.95 KB
Component of No Buildroots