P is for Practical | |
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to Re^3: Temporary text files with File::Temp
by John M. Dlugosz
|
|