So I'm trying to modify a binary file with perl. All is going well except one issue. I need to change an integer value. I can successfully retrieve the value by using: unpack("S", $var); I assumed, incorrectly that I could do this to reset the value: pack("S", $newvar); Not working. Suggestions? --