from_to is not exported by default. it also encode/decodes strings *in-place*.
use Encode qw(from_to); from_to($word, 'utf8', 'euc-jp');
On your second case, it depends. most likely cause is that $word isn't decoded into Perl's utf8 representation. You'd need to show more specific examples
In reply to Re: Converting from UTF8->EUC-JP
by lestrrat
in thread Converting from UTF8->EUC-JP
by GaijinPunch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |