in reply to hexadecimal division

Maybe you just want this? $result2 = chr(ord($dividend)/ord($divisor));

In Perl, bitwise operators like ^ are overloaded to work with strings or numbers. Division only works with numbers, so you have to force your string to a number with ord, then force it back to a string with chr.

Replies are listed 'Best First'.
Re^2: hexadecimal division
by LanX (Saint) on Dec 16, 2017 at 23:31 UTC
      To make things more complicated than necessary?