Algorithm-Scale2x
view release on metacpan or search on metacpan
inc/Module/Install.pm view on Meta::CPAN
404142434445464748495051525354555657585960# 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
:
not:
use
${\__PACKAGE__};
inc/Module/Install.pm view on Meta::CPAN
717273747576777879808182838485868788899091# is unreliable on some platforms and requires write permissions)
# for now we should catch this and refuse to run.
if
( -f $0 ) {
my
$s
= (
stat
($0))[9];
# If the modification time is only slightly in the future,
# sleep briefly to remove the problem.
my
$a
=
$s
-
time
;
if
(
$a
> 0 and
$a
< 5 ) {
sleep
5 }
# Too far in the future, throw an error.
my
$t
=
time
;
if
(
$s
>
$t
) {
die
<<
"END_DIE"
}
Your installer $0
has
a modification
time
in the future (
$s
>
$t
).
This is known to create infinite loops in make.
Please correct this, then run $0 again.
END_DIE
( run in 0.661 second using v1.01-cache-2.11-cpan-95122f20152 )