Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: regexp word break help

by coreolyn (Parson)
on Apr 30, 2002 at 21:15 UTC ( [id://163162]=note: print w/replies, xml ) Need Help??


in reply to regexp word break help

Well off the top of my head...

while ( length($string) > 45 ) { $_ = $string; /\s.*$/ $string = $`; }

... but I'm sure there's even cleaner ways to do it. (Yeah I know Death to dot star and all but I did say off the top of my head :)

coreolyn

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-18 18:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found