[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Perl pack question
- Subject: [ale] Perl pack question
- From: lists at serioustechnology.com (Geoffrey Myers)
- Date: Fri, 15 Feb 2013 09:32:43 -0500
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?
--