That seems to work great, however I am unable to repack it to a bin file after I'm done with it. My goal is to be able to change a value in a binary file and then rewrite the binary file. Does anyone have any idea how to do that?my @lines = unpack("v*",<MYINFILE>); my $line; foreach $line (@lines) { print MYOUTFILE sprintf("%lx",$line), "\n"; }
In reply to pack/unpack binary file by mark4444az
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |