Changing one byte of a file in Perl

Posted by jnylen on Stack Overflow See other posts from Stack Overflow or by jnylen
Published on 2010-03-17T17:13:33Z Indexed on 2010/03/17 18:01 UTC
Read the original article Hit count: 551

Filed under:
|

Very similar to http://stackoverflow.com/questions/845127/changing-one-byte-in-a-file-in-c, but in Perl instead of C:

How can I open a binary file in Perl, change ONLY the first byte, and write it back out?

© Stack Overflow or respective owner

Related posts about perl

Related posts about binaryfiles