in reply to COnversion problems?

But at some point in your Perl quest you need to stop attempting to reinvent the wheel and start using such things as the built-in function oct and the CPAN module Roman.