in reply to Change Binary File

Almost the same way you'd change a text file.

open the file as usual, set binmode on the handle (optional on UNIX), and read the file into string(s), change the data and print it back.

Is there anything specific you're unsure about?

Replies are listed 'Best First'.
Re^2: Change Binary File
by muba (Priest) on Mar 23, 2007 at 15:44 UTC

    Even though binmode is indeed optional on *nix systems, it never hurts to use it anyway - on said systems it's just a no-op, but it makes your program more portable.

    On the other hand, if you're not aiming for portability, well, yeah, you don't need to bother.