in reply to
truncating a line
untested:
$str = length($str)>17 ? substr($str,0,17).'...' : $str;
[download]
-pete
"Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."
Comment on
Re: truncating a line
Download
Code
In Section
Seekers of Perl Wisdom