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


in reply to Binary Coded Decimal

See Encode and decode binary-coded decimals and Encoding BCD. There are probably other posts here too, so see also Super Search.