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

Re: How do I count characters

by davorg (Chancellor)
on Apr 21, 2002 at 08:54 UTC ( [id://160856]=note: print w/replies, xml ) Need Help??


in reply to How do I count characters

You count the characters in a string use length. To split a string into substrings use substr.

But to take a piece of text and wrap it into lines of a certain length, use the Text::Wrap module.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-25 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found