File::IfModified - Perl extension for checking if-modified state of file
use File::IfModified qw(if_modified); my $cached_data; my $file = 'data for initialization of $cached_data'; while( 1 ){ if ( if_modified( $file ){ # Open $file and # Init $cached_data ... } # Use $cached_data ... sleep 1; }
This module usefull for long running script with external dependenses on other files
None by default.
L<File-Modified>.
A. G. Grishaev, <grian@cpan.org>
Copyright (C) 2011 by A. G. Grishaev
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.1 or, at your option, any later version of Perl 5 you may have available.
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install File::IfModified, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::IfModified
CPAN shell
perl -MCPAN -e shell install File::IfModified
For more information on module installation, please visit the detailed CPAN module installation guide.