First, some background info.
I had working perl modules for Windows 10 running DWIM perl for many years.
Got a new PC last week, windows 11. Dwimperl was having problems installing with cpan for spreadsheet modules, and so I decided to remove DWIMPerl and install the latest Strawberry perl instead.
cpan installed my needed spreadsheet modules correctly, so some of my code was now working.
But in this module, I get this error:
Wide character at C:\perl-lib-ctp/Fmsc.pm line 27, <INFILE> line 1.
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);
}
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?