Help for this page

Select Code to Download


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