Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: bin2dec for big numbers

by TilRMan (Friar)
on Feb 26, 2005 at 18:40 UTC ( [id://434804] : note . print w/replies, xml ) Need Help??


in reply to bin2dec for big numbers

Nothing overkill about using a module.

use Math::BigInt; sub bin2dec { my ($bin) = @_; return Math::BigInt->new("0b$bin"); }