On Aug 10, Jeff 'japhy/Marillion' Pinyan said:
> my $len = length $output;
> my $i = 0;
> while ($i < $len) {
> print substr($output, 8 * $i++, 8), " ";
> }
Oops. The condition of the while loop should be:
while ($i * 8 < $len) { ... }
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]