- or download this
$mystring = pack('H*', '0D0A...');
- or download this
# Ignores whitespace
($mystring = '0D 0A ...') =~ s/([0-9a-fA-F]{2})/chr($1)/g;
- or download this
# Multiline and ignores whitespace
($mystring = <<'__EOI__') =~ s/([0-9a-fA-F]{2})/chr($1)/g;
...
0D 0A ...
...
__EOI__