substr($str, 17) = '...' if length $str > 17; [download]
In reply to Re: truncating a line by ctilmes in thread truncating a line by Anonymous Monk