http://qs321.pair.com?node_id=1210308


in reply to Re^3: By the shine on my bald pate, I dislike this encoding stuff
in thread By the shine on my bald pate, I dislike this encoding stuff

Thank you. I had no idea. That does work for the files that are ANSI. Most bizarrely,

my @LINES = <ORDERFILE>; my $filedata = join '',@LINES;

works but the following does not + I get loads of warnings: "utf8 "\xA3" does not map to Unicode"

my $filedata = <ORDERFILE>;

Replies are listed 'Best First'.
Re^5: By the shine on my bald pate, I dislike this encoding stuff
by poj (Abbot) on Mar 04, 2018 at 14:29 UTC
    my $filedata = <ORDERFILE>;

    That only reads the first line of the file.

    poj