@substr = unpack "A$size" x ( 1 + length( $str ) / $size ), $str;
Or maybe
@substr = unpack "A$size" x POSIX::ceil( length( $str ) / $size ), $st +r;
Makeshifts last the longest.
In reply to Re: Eliminating substr warnings
by Aristotle
in thread Eliminating substr warnings
by ezekiel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |