File-Util
view release on metacpan or search on metacpan
Example B. (case insensitive order)
COPYING Changes Makefile.PL MANIFEST README test.pl
3.12_9 2002-10-27
- Various places where warnings were surfacing undesirably have been
corrected. General preparations made to upload File::Util to PAUSE and
ultimately be included in the CPAN.
3.12_7 2002-10-02
- Method 'list_dir_a()' no longer suffixes directory items with the
system path separator by force.
3.12_6 2002-10-04
- Fixed serious problem with flock() wrapper which was previously not
working at all when global setting '--fatals-as-status' or global
setting '--fatals-as-warning' were used. An upgrade to the present
release of File::Util from versions predating this release (3.12_6) is
seriously recommended!
3.12_5 2002-10-01
- More performance improvements.
- New argument flags recognized by method 'new':
'--fatals-as-warning' The new File::Util object will CORE::warn()
about otherwise fatal errors instead of
failing and exiting the process.
'--fatals-as-status' The new File::Util object will return(undef)
to method calls that would otherwise cause
fatal errors.
- Method 'write_file' now recognizes the argument flag,
'--empty-writes-OK', as an alternative means of allowing the
creation of empty files without reaping a nasty fatal error. Up
until now, setting $File::Util::empty_writes to a true value was the
only way to accomplish this.
3.12_4 2002-09-23
- Fixed 'deep recursion' problem in AUTOLOAD
3.12_3 2002-09-23
- Added AUTOLOAD and moved lots of methods away into space. They get
AUTOLOAD-ed when needed, but not compiled as routines in the module.
This greatly improves compile-time and run-time performance now.
- Got rid of methods 'get()' and 'set()'; they're largely useless.
- Got rid of variable '$File::Util::canhackit'; no longer used.
3.12_2 2002-09-11
- Moved to OOorNO interface design in order to provide both an Object-
Oriented and a Procedural (non-Object-Oriented) programming style
interface to File::Util.
1.10 2002-03-14
- Constants are now class attributes independent of the constructor method.
File::Util objects should always get these constants regardless.
- Constants and OS identification extended upon code from CGI.pm v.2.78
(go Lincoln, it's your birthday, get busy...) as such, File::Util got path
separator help to better support a wider variety of platforms.
- Additionally, constants contributed to a major overhaul of how File::Util
handles newlines.
1.09 2002-03-14
- Error messages got their own place as predefined key-value pairs in an
anonymous hash independent of any class methods. eg-they are committed to
memory at compile time for speedy destruction of intentionally halted
processes.
1.07 2002-02-09
- new method: File::Util::open_handle. This method lets user pass a
typeglob reference (eg- *TYPG) and in return the user will get back a new
file handle which is opened to the filename of their specifications.
1.06 2002-02-05
- Fixed a bug in File::Util::stamp() which made times during the hour of
12:00 PM appear with the 'AM' suffix rather than the correct 'PM suffix.
- Added a new format type to File::Util::stamp() called 'file' or 'filename'
which returns a timestamp suitable for placing into the name of a file
in order to archive old files or versions of code with a time/date stamp
embedded into the filename for easy lookup.
1.05 2001-12-05
- Added a few more methods of the same nature as File::Util::size(). Passing
in a format keyword argument returns a formatted timestamp. Format
keywords described in detail within the overview entry for previous
version 1.02. Now an overview of new methods:
- File::Util::created([filename][format])
returns the creation time of the file in seconds since the epoch. The
value returned is then passed back in the same format as the value
returned from a call to Perl's built-in function: time()
consequently, the value returned is suitable for feeding to
localtime, or any private methods and functions expecting the same
type of input.
As such, a call to this method on a file which was created at:
Thursday, December 6, 2001, 4:27:57 PM
...would return the value: 1007684877
- File::Util::last_mod([filename][format])
Returns the last modified time of the file you pass to it in seconds
since the epoch. Just as with the new created() method described
above, the value returned comes in the same format as the value
returned from a call to time(), and is therefore suitable for feeding
to localtime() or any other private function or method expecting input
of the same type.
As such, a call to this method on a file which was last modified at:
Sunday, December 2, 2001, 12:05:21 AM
...would return the value: 1007280321
- File::Util::last_access([filename][format])
( run in 1.114 second using v1.01-cache-2.11-cpan-39bf76dae61 )