Package : perl-B-Hooks-OP-Check-StashChange > RPM : perl-B-Hooks-OP-Check-StashChange-0.60.0-21.mga9.src.rpm
Basic items
Name | perl-B-Hooks-OP-Check-StashChange |
Version | 0.60.0 |
Release | 21.mga9 |
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 | 65KB |
Arch | aarch64 |
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 9 |
Media name | core-release |
Media arch | x86_64 |
Advanced items
Source RPM | NOT IN DATABASE ?! |
Build time | 2022-06-07 01:50:58 |
Changelog | View in Sophie |
Files | View in Sophie |
Dependencies | View in Sophie |