Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How do I truncate a string while preserving words?

by rkrieger (Friar)
on May 11, 2007 at 10:31 UTC ( #614867=note: print w/replies, xml ) Need Help??


in reply to How do I truncate a string while preserving words?

Assuming you're working on a paragraph of text and want to also break within words. If that's not what you meant with your OP, this probably isn't what you're looking for.

Doing a quick CPAN search, would Tex::Hyphen be something for you? From the list of changes, it would also seem to support other languages than English.

  • Comment on Re: How do I truncate a string while preserving words?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://614867]
help
Chatterbox?
[choroba]: Hi Corion! Where have you been?
[Discipulus]: ah! holidays i hope..

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2017-02-22 08:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (325 votes). Check out past polls.