This will remove everything after the last period before the 400th character position:
$string =~ s[^.{1,400}\.\K.*?$][];
In reply to Re: Truncating after the last period
by BrowserUk
in thread Truncating after the last period
by sdyates
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |