in reply to Re^4: attempting to achieve something
in thread attempting to achieve something

use utf8; tells Perl that the source code is written in UTF-8. If you want to read from an input file, you need to specify the input layer, either using
open my $fh, '<:encoding(UTF-8)', $filename or die $!;
or using the open pragma:
use open IO => ':encoding(UTF-8)';
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.