BEGIN-Lift

 view release on metacpan or  search on metacpan

lib/BEGIN/Lift.pm  view on Meta::CPAN

    # it shows up sensibly in stack
    # traces and the like ...
    Sub::Name::subname( "${pkg}::${method}", $handler );

    # install the keyword handler ...
    BEGIN::Lift::Util::install_keyword_handler(
        $cv, sub { $handler->( $_[0] ? $_[0]->() : () ) }
    );

    # clean things up ...
    Devel::Hook->unshift_UNITCHECK_hook(sub {
        no strict 'refs';
        # NOTE:
        # this is safe only because we
        # confirmed above that there was
        # no other use of this typeglob
        # and so it is ok to delete
        delete ${"${pkg}::"}{$method}
    });
}

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.809 second using v1.00-cache-2.02-grep-82fe00e-cpan-c30982ac1bc3 )