my $maxlen = 20; # could be 255 if you like my $memo = "This is a really long string and I only need to show the f +irst $maxlen characters..."; print substr( $memo, 0, $maxlen ), "\n";
In reply to Re: Display shortened paragraph
by graff
in thread Display shortened paragraph
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |