[Israel.pm] binary vectors representation

Mikhael Goikhman migo at homemail.com
Fri Jun 11 05:23:16 PDT 2004

Correctiopn of the typos in the parent message.

On 11 Jun 2004 12:02:30 +0000, Mikhael Goikhman wrote:
> 	my $substr32 = printf("%b", $number32);

The correct line to convert to zero-one string is of course:
my $substr32 = sprintf("%032b", $number32);

> 		last unless sysread(BINARY, $bin_line, $num_line_bytes);

Remove this line from the code.


perl -e 'print+chr(64+hex)for+split//,d9b815c07f9b8d1e'

More information about the Perl mailing list