in reply to Re^2: Binary to decimal conversion
in thread Binary to decimal conversion

Translate that to perl, its easy