Here is another idea, I would replace
if (-M $init_file > $days) {
$message = "Warning: $init_file is older than $days day\n"
with a check to see if $init_file is more recently modified than a directory in @INC, like
for my $init_file ( '.', '..' ) {
my $mod = ( stat $init_file )[9];
if ( my @mod = grep { ( stat $_ )[9] > $mod } @INC ) {
warn "Warning: $init_file is older than (", join( ' , ', @mod
+), ") ";
}
}
__END__
Warning: .. is older than (C:/perl/5.10.1/lib/MSWin32-x86-multi-thread
+ , C:/perl/5.10.1/lib , C:/perl/site/5.10.1/lib/MSWin32-x86-multi-thr
+ead , C:/perl/site/5.10.1/lib , .) at - line 4.