Your proposal looks fine. Ideally, your file transfers should be in ASC mode but you can't rely on people doing that.
You could take the opportunity to translate lineends to native format for the server.
Do you mean ... die "$filename can't... ?
After Compline,
Zaxo
In reply to Re: Handling Mac, Unix, Win/DOS newlines at readtime...
by Zaxo
in thread Handling Mac, Unix, Win/DOS newlines at readtime...
by strredwolf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |