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

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.004 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )