Canonical method
$input_string =~ s/(..)/chr(hex($1))/ge;
This reads two characters at a time from the input, calling hex (converting the hexadecimal number to decimal number), and then chr (converting the decimal number to character) on each input.
source share