Those are not errors, but warnings. print is letting you know that it is trying to print a unicode character to a non-unicode filehandle. Your console is not seen as a unicode filehandle. You can fix this by stating that you want STDOUT to be considered a unicode filehandle by adding the following line before the print:
binmode STDOUT, ":utf8";
BTW a few of comments:
- you only need to use XML::Twig::XPath, not the other modules, they are used in turn by XML::Twig::XPath.
- your code is not correct, you don't create $twig, posting a complete code example, using strict and warnings, and if possible getting the data from the DATA section so it's self-contained would make the life of people responding to your question a little easier,
- why the high unicode characters instead of plain old ' (although you might not have control over that),
-
finally, a google search on perl "wide character in print" would have given you the answer quicker.