By the way, there is a package that does this:
use String::Escape; print String::Escape::elide( "Ipod batteries for Apple Ipod PDAs. Repl +acement batteries from Laptops for Less.com.url", 20 ); # Ipod batteries...
In reply to Re: how to shorten given string?
by fglock
in thread how to shorten given string?
by mellin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |