in reply to hexadecimal division
Here's your error:
You get the result as an integer (= 0), but you treat it as a character (="0").$result2 = int(ord($dividend)/ord($divisor)); print sprintf("%02X ", ord($result2)) . "\n";
In Section
Seekers of Perl Wisdom