in reply to Binary to Decimal (zdog's way)
$_ = shift; print unpack "N", pack "B*", ("0" x (32 - length)) . $_; [download]
-- Randal L. Schwartz, Perl hacker