Don't ask to ask, just ask | |
PerlMonks |
Re: In search of a better way to trim stringby rrwo (Friar) |
on Jul 20, 2004 at 04:12 UTC ( [id://375792]=note: print w/replies, xml ) | Need Help?? |
Hm, there's Text::Truncate:
It may not be the most efficient way to do it, but you don't have to think about how to do it. Disclaimer: I wrote that module a while ago because I was sick of rewriting a routine to do that all the time. Any ideas for improvements would be appreciated.
In Section
Seekers of Perl Wisdom
|
|