good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: How can I do this better?by zzspectrez (Hermit) |
on Jan 19, 2001 at 06:31 UTC ( [id://52914]=note: print w/replies, xml ) | Need Help?? |
If the routine will be downloading binary data such as images or files you might consider doing binmode(OUT); immediately after the open. Otherwise on some systems such as Windows, the data will be corrupted on write because a "\n" is actually two characters on Windows and is changed to "\015\012". This works fine for text data but will cause problems if the data is not text. For more information see perlport and my problem with this at the following node Windows CRLF Confusion. zzSPECTREz
In Section
Seekers of Perl Wisdom
|
|