This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Provide a template for call to File::Temp::tempfile().
authorFrançois Perrad <francois.perrad@gadz.org>
Sun, 9 Oct 2016 20:13:21 +0000 (16:13 -0400)
committerJames E Keenan <jkeenan@cpan.org>
Sun, 9 Oct 2016 20:13:21 +0000 (16:13 -0400)
commit91dca83e9396e920f65b4f093ac7f6e5250a2f43
tree253ece40aec9cf81a2fdbd3342a419a063d4f1f5
parent26d58bfed57736ec1e1f1dfd579484f8b6fcccd7
Provide a template for call to File::Temp::tempfile().

tempfile() with template gives a file in the current directory.
tempfile() without template gives a file in /tmp.  These may be on different
kinds of filesystems (in the instant case, the former was on ext2, the latter
on ext4) with different characteristics with respect to high-resolution
timing.

Originally reported at:
https://rt.cpan.org/Public/Bug/Display.html?id=116127#txn-1674171
dist/Time-HiRes/t/utime.t