Provides File::Find::Rule methods for finding various Perl-related
files.
The File::Tail module is designed for reading files which are continuously
appended to (the name comes from the tail -f directive). Usually such files
are log files of some description.
File::Temp is a Perl5 module which can be used to generate temporary files
(providing a filename and filehandle) or directories. Possible race
conditions are avoided and some security checks are performed (e.g. making
sure the sticky bit is set on world writeable temp directories).
Many tools need to be equally useful both on ordinary files, and on code that
has been checked out from revision control systems.
File::Find::Rule::VCS provides quick and convenient methods to exclude the
version control directories of several major Version Control Systems (currently
CVS, subversion, and Bazaar).
File::Find is great, but constructing the wanted routine can sometimes
be a pain. This module provides a wanted-writer, using syntax that
is directly mappable to the find command's syntax.
File::Flat implements a flat filesystem. A flat filesystem is a
filesystem in which directories do not exist. It provides an
abstraction over any normal filesystem which makes it appear as if
directories do not exist. In effect, it will automatically create
directories as needed. This is create for things like install scripts
and such, as you never need to worry about the existence of directories,
just write to a file, no matter where it is.
File::Flock::Retry is yet another flock module. It is a more lightweight
alternative to File::Flock with some other differences:
- OO interface only
- Autoretry (by default for 60s) when trying to acquire lock
File::Flock is a wrapper around the flock() call. The only thing it
does that is special is that it creates the lock file if the lock file
does not already exist.
It will also try to remove the lock file. This makes it a bit
complicated.
Perl's chdir() has the unfortunate problem of being very, very, very
global. If any part of your program calls chdir() or if any library you
use calls chdir(), it changes the current working directory for the
whole program.
File::chdir gives you an alternative, $CWD and @CWD. These two
variables combine all the power of chdir(), File::Spec and Cwd.
File::chmod is a utility that allows you to bypass system calls
or bit processing of a file's permissions. It overloads the
chmod() function with its own that gets an octal mode, a
symbolic mode, or an "ls" mode. If you wish not to overload chmod(),
you can export symchmod() and lschmod(), which take, respectively,
a symbolic mode and an "ls" mode.