John W. Krahn wrote:
JupiterHost.Net wrote:
Howdy,
Hello,
http://search.cpan.org/~tjenness/File-Temp-0.16/Temp.pm#BINMODE
says:
"The file returned by File::Temp will have been opened in binary mode if such a mode is available. If that is not correct, use the binmode() function to change the mode of the filehandle."
perldoc -f binmode
doesn't seem to touch on how to "use the binmode() function to change the mode of the filehandle." back to ascii mode.
Anyone know how that's done or what part I missed ;)
perldoc -f binmode binmode FILEHANDLE, LAYER ^^^^^
...
If LAYER is present it is a single string, but may contain multiple directives. The directives alter the behaviour of the ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ file handle. When LAYER is present using binmode on text file ^^^^^^^^^^^
...
Also see:
perldoc PerlIO
Thanks John :)
So if I'm reading right:
binmode $fh; # binary mode binmode $fh, :crlf; # ascii mode ??
Would effectively undo binmode $fh; correct? or am I missing the right LAYER?
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>