#!/usr/bin/perl use warnings; use strict; use feature qw{ say }; use open IO => ':encoding(UTF-8)', ':std'; my $string = join q(), map chr, 9312 .. 9321; say $string; say substr $string, 0, 7; say bytes::substr $string, 0, 7;