in reply to Re^4: Listing out the characters included in a character class [wide character warning]
in thread Listing out the characters included in a character class
#!/usr/bin/perl use warnings; use strict; use utf8; use Test::More tests => 1; use open OUT => ':encoding(UTF-8)', ':std'; is "kůň", 1, 'same';gives the warning, while
#!/usr/bin/perl use warnings; use strict; use utf8; use open OUT => ':encoding(UTF-8)', ':std'; use Test::More tests => 1; is "kůň", 1, 'same';does not.
That's why I recommended Test::More::UTF8. You can place it wherever you like and there are no warnings.
Update: <code> to <pre> to fix the non-English characters.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Listing out the characters included in a character class [wide character warning]
by kcott (Archbishop) on Nov 03, 2023 at 10:22 UTC | |
|
Re^6: Listing out the characters included in a character class [wide character warning]
by Polyglot (Chaplain) on Nov 04, 2023 at 12:03 UTC |