in reply to convert hex to char fast

Maybe

my $input = '4142A0B1'; print unpack("a*", pack("H*", $input)); # "AB ±"

update: actually, the unpack isn't even needed, as the result of the pack already is a byte string...