title: How can I open a binary file in Perl, change ONLY the first byte, and write it back out?
body: <p>Very similar to <a href="https://stackoverflow.com/questions/845127/changing-one-byte-in-a-file-in-c">Changing one byte in a file in C</a>, but in Perl instead of C.</p>
  
  <p>How can I open a binary file in Perl, change ONLY the first byte, and write it back out?</p>