Devel::Loading - Run code before each module is loaded
version 0.01
perl -MDevel::Loading -Mbase -e0 Loading base.pm at - line 0. Loading strict.pm at /opt/local/lib/perl5/5.8.8/base.pm line 3. Loading vars.pm at /opt/local/lib/perl5/5.8.8/base.pm line 4. Loading warnings/register.pm at /opt/local/lib/perl5/5.8.8/vars.pm line 7. Loading warnings.pm at /opt/local/lib/perl5/5.8.8/warnings/register.pm line 24. Loading Carp.pm at /opt/local/lib/perl5/5.8.8/warnings.pm line 134. Loading Exporter.pm at /opt/local/lib/perl5/5.8.8/Carp.pm line 193. use Regexp::Common; use Devel::Loading sub { die "I can't load $_!" if /$RE{profanity}/ };
Putting coderefs into @INC is pretty sick and wrong. But sometimes you just need to know, you know?
@INC
Other modules that prepend things to @INC (such as lib) won't have their loading announced. Perhaps some XS is in order. Then again, am I evil enough to tie @INC? Stay tuned.
Multiple Devel::Loading hooks may be present in @INC. This is a feature!
Devel::Loading
Shawn M Moore, <sartak@bestpractical.com>
<sartak@bestpractical.com>
Devel::Loaded
To install Devel::Loading, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::Loading
CPAN shell
perl -MCPAN -e shell install Devel::Loading
For more information on module installation, please visit the detailed CPAN module installation guide.