in reply to Perl hex substraction

A few tips to get you started: