Help for this page
my @digit = reverse split //, $bin; ... $num = $num * 2 + $bit; } print "\n$num\n";