http://www.perlmonks.org?node_id=599655


in reply to Bug in perl -C (Unicode) option parsing?

I took your CDS.pl and got this:

#!/usr/bin/perl -l -CDS use strict; use warnings; use diagnostics; binmode STDOUT, ":utf8"; print ${^UNICODE}, ' ', "\x{100}";

Perl met a wide character when it wasn't expecting one, so you have to add the utf8 layer to silence it.

Replies are listed 'Best First'.
Re^2: Bug in perl -C (Unicode) option parsing?
by ikegami (Patriarch) on Feb 13, 2007 at 07:25 UTC

    so you have to add the utf8 layer to silence it.

    That's what -CDS is suppose to do! And like the OP shows, that's what -CDS does ...but not always. That's the bug.

      Thanks for the input, ikegami. Got it.