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.
--"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|