in reply to Re: Find installed Perl modules matching a regular expression
in thread Find installed Perl modules matching a regular expression
with a check to see if $init_file is more recently modified than a directory in @INC, likeif (-M $init_file > $days) { $message = "Warning: $init_file is older than $days day\n"
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Find installed Perl modules matching a regular expression
by toolic (Bishop) on Sep 26, 2009 at 00:49 UTC | |
by Anonymous Monk on Sep 26, 2009 at 01:08 UTC | |
by toolic (Bishop) on Sep 27, 2009 at 00:17 UTC |