I’m trying to use IO::Handle to create a CSV file with Text::CSV. When compiling the program I get the following error:
"IO::Handle version 2 required--this is version 1.28 at C:/strawberry/perl/lib/Exporter/Heavy/pm line 120 "
My code is not 120 lines long. I have the same problem if I use IO::File rather than IO::Handle (I installed IO::Handle because I couldn’t get IO::File to work).
$io = new IO::Handle "> Test.csv";
is the relevant code. I could not find a version 2 of either IO::File or IO::Handle, and installed both using cpan not specifying any version.
That comes from something (mistakenly) doing
or equivalent.