Module-Refresh
view release on metacpan or search on metacpan
lib/Module/Refresh.pm view on Meta::CPAN
sub mtime {
return join ' ', ( stat( $_[1] ) )[ 1, 7, 9 ];
}
=head2 update_cache $file
Updates the cached "last modified" time for $file.
=cut
sub update_cache {
my $self = shift;
my $module_pm = shift;
# In case the module was not loaded successfully.
return unless defined $INC{$module_pm};
$CACHE{$module_pm} = $self->mtime( $INC{$module_pm} );
}
=head2 unload_subs $file
( run in 0.219 second using v1.01-cache-2.11-cpan-4d4bc49f3ae )