you'll want to use substr:
my $long_line= 'this line is more than seventeen characters.'; my $short_line= substr( $long_line, 16, length $long_line ) .= '...';
~Particle *accelerates*
In reply to Re: truncating a line
by particle
in thread truncating a line
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |