makamaka / Text-CSV

comma-separated values manipulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Misleading error message (INI - the header is empty)

x-yuri opened this issue · comments

When a header contains Cyrillic letters, it says the header is empty:

use strict;
use warnings;
use utf8;
# my $hdr = 'test';
my $hdr = 'тест';
open my $h, "<", \$hdr or die $!;
$ perl a.pl
Strings with code points over 0xFF may not be mapped into in-memory file handles
Invalid argument at a.pl line 6.

open my $h, "<", $hr or croak ($self->SetDiag (1010));

I'm running perl-5.36.0.