title: Write PDF file bytes to a file with Perl?
body: <p>I'm reading a PDF file into an array of bytes <code>byte[]</code> and sending this to a Perl SOAP::Lite web service. Once the Perl service receives this array of bytes, I'd like to write them to a file (with a PDF extension of course).</p>
  
  <p>How can I achieve this?  All the examples I can dig up assume that I'd like to begin with opening a file, reading, then writing...but what if only have the raw data to work with?</p>