My guess from your (vague) description is, that somehow the line endings get mushed up in the transfer. The simplest way in your case would be to add
binmode FILE;
in your read_file subroutine, and see if that helps.
Are you sure that your file looks OK on the source side? Are you sure that your download program does not mess with the file as it is written? Windows and Unix have different concepts of "text files", so that might be a problem as well - did you copy the file manually from one machine to another and see if you have the same problems?
In reply to Re: Downloading file
by Corion
in thread Downloading file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |