( my $new_string = substr $string, 0, 400 ) =~ s/[^.]*\z//; [download]
In reply to Re: Truncating after the last period by jwkrahn in thread Truncating after the last period by sdyates