On 13.11.2019 19:17, p...@cpan.org wrote:
On Wednesday 13 November 2019 19:12:10 André Warnier (tomcat/perl) wrote:
My question is : can I - and how -, set the filehandle that corresponds to
the $f->read(), to a UTF-8 layer ?
I have tried

line 155: binmode($f,'encoding:(UTF-8)');

Hi André! When specifying PerlIO layer for file handle, you need to
write colon character before layer name. So correct binmode call is:

   binmode($f, ':encoding(UTF-8)');

and that triggers an error :
  Not a GLOB reference at (my filter) line 155.\n
)

Thanks. Ooops, that was a typo (also in my filter, not only in the list 
message).
But correcting it, does not change the GLOB error message.

Reply via email to