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


in reply to Re^2: built in function for binary division
in thread built in function for binary division

You can work with binary numbers as shown, viz., by preceding the number with 0b, performing the operation, and then formatting the result using sprintf.

Were you thinking of some other binary math function?