Acme-Everything
view release on metacpan or search on metacpan
inc/Module/Install.pm view on Meta::CPAN
# releases once we can make sure it won't clash with custom
# Module::Install extensions.
$VERSION = '0.68';
}
# Whether or not inc::Module::Install is actually loaded, the
# $INC{inc/Module/Install.pm} is what will still get set as long as
# the caller loaded module this in the documented manner.
# If not set, the caller may NOT have loaded the bundled version, and thus
# they may not have a MI version that works with the Makefile.PL. This would
# result in false errors or unexpected behaviour. And we don't want that.
my $file = join( '/', 'inc', split /::/, __PACKAGE__ ) . '.pm';
unless ( $INC{$file} ) {
die <<"END_DIE";
Please invoke ${\__PACKAGE__} with:
use inc::${\__PACKAGE__};
not:
use ${\__PACKAGE__};
lib/Acme/Everything.pm view on Meta::CPAN
sub _load {
# We'll try to do this the normal way once,
# and if that doesn't work, we'll bring CPANPLUS into it.
eval { $_ = Class::Autouse::__load( @_ ) };
# We only care if we couldn't find the class
return $_ unless $@;
die $@ unless $@ =~ /^Can't locate /;
# Try to install the module, and then call __load again.
# But this time, don't catch errors.
require CPANPLUS;
CPANPLUS::install( $_[0] );
Class::Autouse::__load( @_ );
}
# Replace Class::Autouse's version with ours
*Class::Autouse::__load = *Class::Autouse::_load;
*Class::Autouse::_load = *_load;
1;
#####################################################################
# WARNING: INSANE BLACK MAGIC
#####################################################################
# Hack Pod::Simple::BlackBox to ignore the Test::Inline
# "Extended Begin" syntax.
# For example, "=begin has more than one word errors"
my $begin;
if ( $Test::Pod::VERSION ) {
$begin = \&Pod::Simple::BlackBox::_ponder_begin;
}
sub mybegin {
my $para = $_[1];
my $content = join ' ', splice @$para, 2;
$content =~ s/^\s+//s;
$content =~ s/\s+$//s;
my @words = split /\s+/, $content;
( run in 0.365 second using v1.01-cache-2.11-cpan-74e6d1fb12f )