Sophie

Sophie

distrib > Mageia > 6 > i586 > by-pkgid > ebba0a31bed6d6c53b343fb78d3b66d2

perl-B-Hooks-OP-Check-StashChange-0.60.0-10.mga6.i586.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>

Sources packages:

Other version of this rpm: