SyntaxFix
Write A Post
Hire A Developer
Questions
To convert DOS style to UNIX style line endings:
for ($line in <FILEHANDLE>) { $line =~ s/\r\n$/\n/; }
Or, to remove UNIX and/or DOS style line endings:
for ($line in <FILEHANDLE>) { $line =~ s/\r?\n$//; }