return Math::BigInt->new( $num->as_bin() =~ s/^0?b//r );
It seems to be taking the binary representation, and making a new object in base 10, and returning that?
-QM
--
Quantum Mechanics: The dreams stuff is made of
In reply to Re^3: Can It Be Written In Base X With Only 1s And 0s
by QM
in thread Can It Be Written In Base X With Only 1s And 0s
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |