in reply to
truncating a line
use the substr() as an lvalue:
substr($str, 17) = '...' if length $str > 17;
[download]
Comment on
Re: truncating a line
Download
Code
In Section
Seekers of Perl Wisdom