[ale] Perl pack question

Geoffrey Myers lists at serioustechnology.com
Fri Feb 15 09:32:43 EST 2013


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?

--


More information about the Ale mailing list