Think about Loose Coupling | |
PerlMonks |
Counting characters in a stringby TASdvlper (Monk) |
on Feb 06, 2004 at 14:34 UTC ( [id://327079]=perlquestion: print w/replies, xml ) | Need Help?? |
TASdvlper has asked for the wisdom of the Perl Monks concerning the following question:
All,
I've read some of the threads here on counting characters in a string, and I got some good information, but not quite all the answers I was looking for. Say I have a string: What I want to do is print n-amount of characters then start a new line. So, say n = 5 (where n is actually a variable). The output would be: any thoughts on this ???
Back to
Seekers of Perl Wisdom
|
|