actually i threw a constant in there as well. it won't simplify the loop, but it should ease maintenance.sub LIMIT () { 100 } my @chunk; while( my $chunk = substr( $initial, 0, LIMIT, '') ) { push @chunks, $chunk; }
~Particle ;Þ
In reply to Re: Re: Parsing Form Input
by particle
in thread Parsing Form Input
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |