TIMTOWTDI...
$line = $1 . '...' if $line =~ m[^(.{17})];
...but ctilmes method above is the right way:)
Update: Corrected (another) typo pointed out by sauoq .
In reply to Re: truncating a line
by BrowserUk
in thread truncating a line
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |