Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: (jeffa) Re: Wordwrap text

by bastard (Hermit)
on Jul 27, 2001 at 02:13 UTC ( #100170=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #example 1
    $content =~ s/(.{1,$width}) /$1<BR>/g;
    print $content;
    
  2. or download this
    #example 2
    $content =~ s/(.{1,$width}) |([^ ]{$width})/$1$2<BR>/g;
    print $content;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (1)
As of 2022-07-03 08:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?