http://www.perlmonks.org?node_id=49491


in reply to How do I convert between decimal and binary?

In v5.6.0 there's $bin = sprintf "%b",$dec; and $dec = oct "0b$bin";