Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: By the shine on my bald pate, I dislike this encoding stuff

by jfrm (Monk)
on Mar 04, 2018 at 11:23 UTC ( #1210308=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1210308]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2022-05-22 10:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (80 votes). Check out past polls.

    Notices?