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]
On Aug 10, Hamish Whittal said:
>I have an octet string that I need to print. When I print it, I get some
>rubbish on the screen. I would therefore like to translate this to
>something printable.
>
>e.g I have 11011010110001001011 and I want to print this as 11011010
>1000100 1011
You wa