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
In reply to Re: How do I count characters
by davorg
in thread How do I count characters
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |