Update: added "0," so that the match would include the final few characters.my $c_per_line = 5; print "$1\n" while ($string =~ /(.{0,$c_per_line})/sg);
In reply to Re: Counting characters in a string
by Roy Johnson
in thread Counting characters in a string
by TASdvlper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |