5 foreach my $ext (@ARGV) {
8 open ($input, "original.$ext");
19 output
("crlf.$ext", "\r\n", \
@lines); # Standard windows
20 output
("lf.$ext", "\n", \
@lines); # Standard unix
21 output
("cr.$ext", "\r", \
@lines); # Standard Mac
22 output
("lfcr.$ext", "\n\r", \
@lines); # Broken
23 output
("crcrlf.$ext", "\r\r\n", \
@lines);# Very broken
28 my ($filename, $delim, $lines) = @_;
30 open ($fileref, "> $filename");
31 foreach my $line (@
$lines) {
32 print $fileref $line . $delim;