Convert hex to ASCII by mitchs

loop{x=$<.read(3).hex
$>.<<x==10?'\n
':32>x||x>?~?'\x%02x'%x:x.chr}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page