Devel::Events::Generator::Require - Event generator for loading of code using
use Devel::Events::Generator::Require; my $g = Devel::Events::Generator::Require->new( handler => $h ); $g->enable(); # all calls to require() will generate a try_require and a require_finished event $g->disable(); # events disabled
This generator allows instrumentation of module/file loading via
require. This includes
require actually happens.
The file that
require was given.
Note that when doing
<require Foo::Bar>, the parameter passed into
CORE::require is actually
<Foo/Bar.pm>, and not the module name.
Fired at the end of every require, successful and unsuccessful.
Make this instance the enabled one (disabling any other instance which is enabled).
This only applies to the
Disable this instance. Will stop generating
object_bless events. =item try_require