Try this:
#! /usr/bin/perl use strict; my $history = shift; open my $fh, "<:encoding(utf8)", "$history" or die "$history: $!"; while (my $line=<$fh>){ $line =~ tr/\r/\n/; # NOTE convert carriage returns to new lines print $line; } close($fh); exit;
and see what you get.
EDIT: apply transliteration to proper variable.
In reply to Re: Reading lines beginning with pound # ignored
by tybalt89
in thread Reading lines beginning with pound # ignored
by slugger415
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |