in reply to Re^2: Display shortened paragraph
in thread Display shortened paragraph

actually the code given by graff works just fine:

my $max = 230; (my $copy = $string) =~ s/(.{1,$max})\b.*/$1.../; print "$copy\n";
Thanks!