Package : perl-B-Hooks-OP-Check-StashChange > RPM : perl-B-Hooks-OP-Check-StashChange-0.60.0-18.mga8.armv7hl.rpm
Basic items
InstallName | perl-B-Hooks-OP-Check-StashChange |
Version | 0.60.0 |
Release | 18.mga8 |
URL | https://metacpan.org/release/B-Hooks-OP-Check-StashChange |
Group | Development/Perl |
Summary | Invoke callbacks when the stash code is being compiled in changes |
Size | 19KB |
Arch | armv7hl |
License | GPL+ or Artistic |
Description
Invoke callbacks when the stash code is being compiled in changes.
From Perl:
<CODE>
package Foo;
use B::Hooks::OP::Check::StashChange;
our $id = B::Hooks::OP::Check::StashChange::register(sub {
my ($new, $old) = @_;
warn "${old} -> ${new}";
});
package Bar; # "Foo -> Bar"
B::Hooks::OP::Check::StashChange::unregister($Foo::id);
package Moo; # callback not invoked
</CODE>
From Perl:
<CODE>
package Foo;
use B::Hooks::OP::Check::StashChange;
our $id = B::Hooks::OP::Check::StashChange::register(sub {
my ($new, $old) = @_;
warn "${old} -> ${new}";
});
package Bar; # "Foo -> Bar"
B::Hooks::OP::Check::StashChange::unregister($Foo::id);
package Moo; # callback not invoked
</CODE>
Media information
Distribution release | Mageia 8 |
Media name | core-release |
Media arch | armv7hl |
Advanced items
Source RPM | perl-B-Hooks-OP-Check-StashChange-0.60.0-18.mga8.src.rpm |
Build time | 2020-06-17 23:43:11 |
Changelog | View in Sophie |
Files | View in Sophie |
Dependencies | View in Sophie |