http://qs321.pair.com?node_id=1181507


in reply to Multiply Hex values

Don't reduce them to "decimal", convert them to numbers (hex), multiply them and convert back to hexadecimal representation (sprintf):

perl -wle "print sprintf '%08x', hex(shift)*hex(shift)" 12340f 33