GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DEVEL::EVENTS::GENERATOR::REQUIRE (3)

.ds Aq ’

NAME

Devel::Events::Generator::Require - Event generator for loading of code using "require".

CONTENTS

SYNOPSIS



        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



DESCRIPTION

This generator allows instrumentation of module/file loading via require. This includes use statements.

EVENTS

try_require Fired before require actually happens.
file 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.

require_finished Fired at the end of every require, successful and unsuccessful.
file The file that require was given.
matched_file The entry of file in %INC.
error The load error, if any.
return_value The value returend by the file. This is always a scalar.

METHODS

enable Make this instance the enabled one (disabling any other instance which is enabled).

This only applies to the object_bless method.

disable Disable this instance. Will stop generating object_bless events. =item try_require

Generates the try_require event.

require_finished Generates the require_finished event.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DEVEL::EVENTS::GENERATOR::REQUIRE (3) 2009-09-21

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.