NAME
File::Temp::Rename - Create a temporary file object for output, and rename it when done.
VERSION
version 0.02
SYNOPSIS
my $ftr = File::Temp::Rename->new(FILE => "output.txt", CLOBBER => 0);
$ftr->print("This is printed to output.txt.tmpXXXXXX, where the X's are random strings");
METHODS
my $ftr = File::Temp::Rename->new(FILE => 'final-output.txt', CLOBBER => BOOL)
Constructor. Create a temporary file named 'final-output.txt.tmpXXXXXX'. When the object gets destroyed, rename to 'final-output.txt'. If the final output file already existed, overwrite it if CLOBBER is true. Otherwise, constructor returns undef.
METHODS
File::Temp::Rename is a subclass of File::Temp, and thus inherits all its methods.
AUTHOR
T. Nishimura <tnishimura@fastmail.jp>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by T. Nishimura.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.