App-GUI-Notepad
view release on metacpan or search on metacpan
inc/Module/AutoInstall.pm view on Meta::CPAN
# make an educated guess of whether we'll need root permission.
print " (You may need to do that as the 'root' user.)\n"
if eval '$>';
}
print "*** $class configuration finished.\n";
chdir $cwd;
# import to main::
no strict 'refs';
*{'main::WriteMakefile'} = \&Write if caller(0) eq 'main';
}
# CPAN.pm is non-reentrant, so check if we're under it and have no CPANPLUS
sub _check_lock {
return unless @Missing;
return if _has_cpanplus();
require CPAN;
CPAN::Config->load;
my $lock = MM->catfile( $CPAN::Config->{cpan_home}, ".lock" );
inc/Module/Install.pm view on Meta::CPAN
$file = "$self->{path}/$1.pm";
my $pkg = "$self->{name}::$1"; $pkg =~ s!/!::!g;
push @found, [ $file, $pkg ];
}, $path ) if -d $path;
@found;
}
sub _caller {
my $depth = 0;
my $caller = caller($depth);
while ($caller eq __PACKAGE__) {
$depth++;
$caller = caller($depth);
}
$caller;
}
1;
( run in 0.453 second using v1.01-cache-2.11-cpan-cc502c75498 )