in reply to Re: hex to bin
in thread hex to bin
Since you seem to have bin2num, here's bin2dec, taken straight from the pack() docs:
sub bin2dec { unpack("N", pack("B32", substr("0" x 32 . shift, -32))); }
In Section
Seekers of Perl Wisdom