Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by cdarke (Prior)
on May 11, 2007 at 10:23 UTC ( [id://614866]=note: print w/replies, xml ) Need Help??


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

A different way of looking at this could be to use formats (see perlform), maybe through formline and $^A. A format of ^<<<<<<<< (etc) should split a line at the correct place, and that can be adjusted using $:
  • Comment on Re: How do I truncate a string while preserving words?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://614866]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-16 18:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found