This works by inserting "\n" at every $window+1 position.$window=79; $i=-1; $str="X" x 723; substr($str,$i,0)="\n" while (($i+=$window+1) < length($str)); print $str;
In reply to Re: string length problems
by Skeeve
in thread string length problems
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |