I have a text string that contains, say, 600 characters. Now I want to cut it off at, say, 500 characters, and add a " ...". (In fact, the string must be max. 500 characters, so perhaps I need to cut it of at 496 to make room for the " ..." ?)
I will use it in a subroutine that also removes HTML tags, which I found out can be done like this:
foreach $lines (@lines) {
$lines =~ s/<([^>]|\n)*>//g;
}
Anyone? Thanks in advance.
John
I will use it in a subroutine that also removes HTML tags, which I found out can be done like this:
foreach $lines (@lines) {
$lines =~ s/<([^>]|\n)*>//g;
}
Anyone? Thanks in advance.
John