Sophie

Sophie

distrib > Mageia > 3 > x86_64 > media > core-release-src > by-pkgid > 4d2b1013dec28a1d9bcf5b996c4ed5d4

perl-B-Hooks-OP-Check-StashChange-0.60.0-2.mga3.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: