File::Modified Free Download

File::Modified Ranking & Summary

Ranking: Click at the star to rank
User Review: 0 ( times ) Download now
File Size: -
OS: -
License: Perl Artistic License
Price: FREE
Publisher: Max Maischein

File::Modified Tags

File::Modified Description

File::Modified class checks intelligently if files have changed.
File::Modified class checks intelligently if files have changed.SYNOPSIS use strict; use File::Modified; my $d = File::Modified->new(files=>['Import.cfg','Export.cfg']); while (1) { my (@changes) = $d->changed; if (@changes) { print "$_ was changedn" for @changes; $d->update(); }; sleep 60; };Second example - a script that knows when any of its modules have changed : use File::Modified; my $files = File::Modified->new(files=>[values %INC, $0]); # We want to restart when any module was changed exec $0, @ARGV if $files->changed();The Modified module is intended as a simple method for programs to detect whether configuration files (or modules they rely on) have changed. There are currently two methods of change detection implemented, mtime and MD5. The MD5 method will fall back to use timestamps if the Digest::MD5 module cannot be loaded.There is another module, File::Signature, which has many similar features, so if this module doesn't do what you need, maybe File::Signature does. There also is quite some overlap between the two modules, code %ARGSCreates a new instance. The %ARGS hash has two possible keys, Method, which denotes the method used for checking as default, and Files, which takes an array reference to the filenames to watch.add filename, methodAdds a new file to watch. method is the method (or rather, the subclass of File::Modified::Signature) to use to determine whether a file has changed or not. The result is either the File::Modified::Signature subclass or undef if an error occurred.addfile LISTAdds a list of files to watch. The method used for watching is the default method as set in the constructor. The result is a list of File::Modified::Signature subclasses.updateUpdates all signatures to the current state. All pending changes are discarded.changedReturns a list of the filenames whose files did change since the construction or the last call to update (whichever last occurred). Requirements:
· Perl

File::Modified Related Software

Smooth Modified Smooth Modified is a simple GTK theme based on the Smooth engine. File size: -
Download now
GNOME GTK style GNOME theme GTK smooth Smooth engine  
Another Modified Dust Another modification of the Dust theme File size: -
Download now
GNOME GTK style GNOME theme GTK Dust Dust mod  
simpleXMMS Modified simpleXMMS Modified is a small karamba XMMS theme based on Simple XMMS by belyi. File size: -
Download now
control xmms control control xmms xmms SuperKarmba theme  
Dust (range modified) Dust theme modified for KYRN File size: -
Download now
GNOME dark theme GNOME theme dark Dust Dust theme  
TechniX kami modified TechniX kami modified is the TechniX GTK 2.0 theme with some modifications. File size: -
Download now
GNOME GTK style GNOME theme GTK TechniX mod TechniX  

File::Modified Company

File::Modified Reviews