Tom Gal wrote:
I'd say this almost one of the only times where basic C would be the best.
C# (like java) won't let you cast, and PERL requires all this complication,
Whoa! Where did you get the idea that Perl required complication?
The core of what I wrote was:
$c = pack('B64',
"0100000000000110010111111100101100100101111111001011001001100000");
($d) = unpack('d', $c);
print "Converted binary string: $d", "\n";
Not exactly complicated. And I'm a Pythonista.
Compare this with some of the other garbage people have suggested ...
The big issue was that the original data simply weren't correct. Don't
blame Perl when you feed it bogus inputs.
GIGO -- Garbage in, garbage out.
-a
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg