my $str = "The black cat climbed the green tree"; say substr $str, 4, -11; # black cat climbed the The 3rd parameter (the length) can also be a negative number. In that case it tells us the number of characters from the right hand side of the original string that should NOT be included.