use strict; use warnings; use v5.10; use utf8; my $string = "abcdefg"; say substr $string, 1, 3; # bcd