Help for this page
use Encode qw(encode decode); my $str = # some input method here; $str = encode("utf8", $str); # do your pattern matching here print decode("utf8", $str);