Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Insert breaklines into string

by graff (Chancellor)
on Sep 12, 2004 at 15:20 UTC ( [id://390434]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $Text::Wrap::$columns = 50;
    $new_string = Text::Wrap::wrap( '', '<br /><br />', $string );
    
  2. or download this
    my $new_string;
    my $width = 50;
    ...
        $string = substr( $string, $brksp+1 );
    }
    $new_string .= $string;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-19 02:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found