in reply to Binary to Decimal Translation
The bin2dec function you have seems the same as that of merlyn in RE: Binary to Decimal (zdog's way), but I'm sure there's a better way.sub dec2bin { return sprintf("%b",shift); }
sub combo { return (2**shift)-1; }
|
|---|