Help for this page

Select Code to Download


  1. or download this
    my ($acc,$digit_count,$dec_string);
    $digit_count = 1;
    ...
    
    map {$acc += $_*$digit_count;$digit_count *=2;} reverse split '',$dec_
    +string;
    print $acc;