Devel-CompiledCalls

 view release on metacpan or  search on metacpan

lib/Devel/CompiledCalls.pm  view on Meta::CPAN

    use Devel::CompiledCalls qw(foo);
    ...

Or from the command line:

    perl -MDevel::CompiledCalls=foo -e '...'

In both these cases the standard callback - which simply prints to STDERR - will
be installed.

=head2 Custom callbacks

Custom callbacks can be installed with the C<attach_callback> subroutine.
This routine is not exported and must be called with a fully qualified
function call.

=over

=item attach_callback( $subroutine_ref, $callback )

=item attach_callback( $subroutine_name, $callback )

The callback will be called whenever a call to the subroutine is compiled.  The



( run in 0.399 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )