|Keep It Simple, Stupid|
Why does File::Temp use sysopen?by John M. Dlugosz (Monsignor)
|on May 02, 2005 at 16:30 UTC||Need Help??|
John M. Dlugosz has asked for the
wisdom of the Perl Monks concerning the following question:
I found an interesting issue when running under Windows where "normal" text files have CRLF line endings.
Basically, using a generated temporary file from File::Temp was not giving the normal endings, but were "binary" by default.
Looking at the Perl code for File::Temp, I see that it uses sysopen rather than the normal open. I think that's why it behaves differently.
And why does sysopen not set up the platform defaults, though it still appears to use IO layers?
Update: behavior on Perl 5.8.4 (ActiveState build 810), but is fixed in Perl 5.8.6 (AS build 811)