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...
In reply to Re: convert hex to char fast
by almut
in thread convert hex to char fast
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |