Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: substr question

by repellent (Priest)
on Jun 18, 2010 at 17:26 UTC ( #845419=note: print w/replies, xml ) Need Help??


in reply to substr question

use Text::Wrap; $Text::Wrap::columns = 100; my $truncated = (split /\n/, wrap("", "", $string))[0];

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://845419]
help
Chatterbox?
and the grasshoppers chirp...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2018-06-20 16:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (116 votes). Check out past polls.

    Notices?