Instead of chomp($line), you could use a regex:
$line =~ s/[\n\r]//g;
This way you're handling both the CR and the LF.
Hope that helped,In reply to Re: handling different new line characters
by Velaki
in thread handling different new line characters
by mav3067
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |