Just another Perl shrine | |
PerlMonks |
Re^3: Temporary text files with File::Tempby John M. Dlugosz (Monsignor) |
on Feb 26, 2008 at 07:55 UTC ( [id://670251]=note: print w/replies, xml ) | Need Help?? |
The problem is that the default for normal open and the default for temfile is different. Teach to always specify the mode of a file, text or binary, because on some platforms it matters. For that matter, be clear about the character encoding too. Maybe you should update the File::Temp module. Or, write your own tempfile function that calls the regular open. That way you have consistent semantics. That's what I do. —John
In Section
Seekers of Perl Wisdom
|
|