Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release-src > by-pkgid > 03a0fe3b7bff6ded16f8cdd5c53e445c

perl-B-Hooks-OP-Check-StashChange-0.60.0-7.mga5.src.rpm

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>

Generated packages:

Other version of this rpm: