Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Break sentence into two part

by toolic (Bishop)
on Jan 24, 2015 at 14:06 UTC ( [id://1114367]=note: print w/replies, xml ) Need Help??


in reply to Break sentence into two part

If you just need to break lines for output, Text::Wrap can help:
use warnings; use strict; use Text::Wrap qw(wrap); $Text::Wrap::columns = 55; my $text = 'Perl 5 is a highly capable, feature-rich programming langu +age with over 27 years of development.'; print wrap('', '', $text), "\n"; __END__ Perl 5 is a highly capable, feature-rich programming language with over 27 years of development.

Log In?
Username:
Password:

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

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

    No recent polls found