frank5us has asked for the wisdom of the Perl Monks concerning the following question:
What's the error message complaining about? A wide character in my source code (which used to work fine on Windows 10 with DWIMperl), or is it complaining about contents of the actual <INFILE> being read in?sub readfile_to_arr { # take in unicode utf8 text, return as array of +lines my $infilename = shift; my @lines = (); use Encode; open INFILE, "<:utf8" , $infilename || die ("can't open $infilena +me") ; (line 27) while (line 28) (my $line = decode_utf8(<INFILE>)) { push(@lines, $line); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Wide character at C:\perl-lib-ctp/Fmsc.pm line 27, <INFILE> line 1.
by Corion (Patriarch) on Dec 26, 2021 at 08:27 UTC | |
by Fletch (Bishop) on Dec 26, 2021 at 14:30 UTC | |
by Anonymous Monk on Dec 26, 2021 at 16:53 UTC | |
by frank5us (Initiate) on Dec 26, 2021 at 23:04 UTC | |
by frank5us (Initiate) on Dec 26, 2021 at 22:55 UTC |