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 reply to Re: How can I do this better?
by zzspectrez
in thread How can I do this better?
by spaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |