title: Convert raw hex to readable hex in perl?
body: <p>I have written a little perl app to reads the serial port. When I run my little script I receive data but it's written in unreadable signs.. it shows like *I??. However if I do </p>
  
  <pre><code>perl test.pl | hexdump
  </code></pre>
  
  <p>I get the required data. And the hex data makes sense to me. Does anyone know how I can get this output using perl without using hexdump?
  Right now I use print ($data) to print my data.</p>