As I said, if we assumed the content of the file was in $file we could use that expression. If you want the content elsewhere, you can change the expression.
If you are looking at determining the line ending while reading the data from the socket, you might want to look at the user agent identification in the HTTP_USER_AGENT environment variable. You should be able to determine the OS from there.
In reply to Re^3: Detect line endings with CGI.pm upload
by gwadej
in thread Detect line endings with CGI.pm upload
by apu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |