print BIN pack('C', hex($hex)); [download]
In reply to Re^2: Creating a binary file problem by ikegami in thread Creating a binary file problem by gibsonca