$line =~ /^(.{0,17})/; print "$1\n";
If that's a rehash, then please let me know. I think it's close to BrowserUK's answer, but they have an if that mine doesn't. Thanks.
In reply to Re: truncating a line
by svsingh
in thread truncating a line
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |