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:my $string = "this is just a test\nthis is another test\nthis is yet a +nother test\n";
any thoughts on this ???this(space) is ju st a t est\nt this(space) is an ... an so on ...
In reply to Counting characters in a string by TASdvlper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |