2007-01-21 Tim Jenness
--- RELEASE 0.18 CPAN ---
* Temp.pm: Provide "cmp" overloading so File::Temp object can
be compared to filename directly. (Rafael Garcia-Suarez)
* Temp.pm: Remove umask control (was not thread-safe)
(thanks to Peter Dintelmann, Gisle Aas)
* t/cmp.t: New test file
Patch provided by Martin Wilke via PR 34346.
Changes:
2006-08-18 Tim Jenness <tjenness@cpan.org>
--- RELEASE 0.17 CPAN ----
* Temp.pm: Also inherit from IO::Seekable so that seek and tell
methods can work on filehandles (thanks to Rick Myers and Toby Corkindale).
* t/seekable.t: Add test script from Rick Myers.
* Temp.pm: Add note about forking and resetting the random number generator
to prevent multiple clashes of temp file names. (pointed out by Brent Cowgill)
* Temp.pm: pre-emptively load Carp::Heavy. If we don't when we run out of file
handles and attempt to call croak() we get an error message telling
us that Carp::Heavy won't load rather than an error telling us we
have run out of file handles. (pointed out by bjoern_at_hoehrmann.de RT #14151)
* Temp.pm: Remove eg. from comments and replace with e.g. In pod
replace "e.g." with "for example". (David Landgren)
* Temp.pm: Correct synopsis concerning the arguments to the
File::Temp constructor (Peter Valdemar Moerch).
* Temp.pm: Update documentation to note that croak() will be
called by tempfile() and File::Temp->new if a problem occurs (thanks to Steve
Hay for pointing this out).
--- RELEASE V0.16 ---
* Temp.pm: Remove spurious debug statement
--- RELEASE V0.15 ---
* Temp.pm (unlink_on_destroy): Add post-object creation method to
control whether the temp file will be unlinked when the object
goes out of scope.
* Temp.pm: Increase maximum number of tries before aborting.
* Temp.pm: Add $KEEP_ALL to allow the temporary files to be
retained whilst debugging (suggestion from Ed Avis [and others]).
* Temp.pm: Temp files should have been opened O_NOFOLLOW rather
than O_FOLLOW! (thanks to Marc Tardif)
* Temp.pm: Add cleanup() function so that temp files that would be
removed by an END block can be removed by a daemon. (RT wishlist
item #6928 by Robert Rothenberg)
* Temp.pm: Force chmod on file before unlinking it. This can be a
problem on windows (see RT bug #6935). tempdir() has been fixed by
Slaven's earlier patch to change the rmtree arguments.
* Temp.pm (top_system_uid): Add interix patch from Todd Vierling
* Temp.pm (_gettemp): Pod patch from Steven Lembark clarifying the
error message associated with two few XXXXs
* Temp.pm: Add note on forking and make sure that END blocks only
remove temporary files created by the current process ID (prompted
by Daniel Macks in RT bug #11067)
* Temp.pm (cmpstat): Roman Vasicek reported problems with the _
filehandle. Play it safe and remove that handle. (see RT bug #8822)
* t/tempfile.t: Add test for write proteceted temp file (thanks to
Slaven Rezic)
* Temp.pm (_can_do_level): Change argument to rmtree to make it
attempt to remove write-protected files on cleanup (thanks to
Slaven Rezic)
* Temp.pm: Add note on binmode usage
Add HOMEPAGE pointing into search.cpan.org.
Change log:
2003-08-16 Tim Jenness <tjenness@cpan.org>
--- RELEASE V0.14 ---
* t/object.t: Add test of OO interface and switch to Test::More
* Temp.pm: Add object-oriented interface.
* Temp.pm: mpeix fixes from Ken Hirsch <hirschk@labcorp.com>
2003-08-15 Tim Jenness <tjenness@cpan.org>
--- RELEASE V0.13 ---
* Temp.pm: Integrate doc fixes from bleadperl (Slaven Rezic and
Jeffrey Friedl)
* Makefile.PL: Add INSTALLDIRS switch on perl version so that the
module installs into the correct place for perl 5.6.1 and newer.