The AM already provided a link to File::Slurp is broken and wrong. I suggest you use this instead (as just discussed here):
my $string = do { open my $fh, '<:raw:encoding(UTF-8)', $file or die "$file: $!"; local $/; <$fh> };
In reply to Re^3: dealing with cyrillic characters
by haukex
in thread dealing with cyrillic characters
by Aldebaran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |