I can get the first reference and I should be able to get the second reference without trouble. I am having problems figuring out how to put the $buffer into $reference.open(my $infile, '<', "./file") or die "Cannot open file: $!"; binmode($infile); open(my $outfile, '>', "./reference1") or die "Cannot create file: $!" +; binmode($outfile); my $file = $infile; my $buffer = ''; sysseek $file, 0x15, 0; sysread $file, $buffer, 0x03; syswrite $outfile, $buffer; close $outfile; system ( 'pause' );
it prints the data from $infile, but not in binary form. i guess my question really is, how can i put $buffer (binary data) into $location? any clarifications on what to do would be very much appreciated.my $reference = $buffer; print $reference;
In reply to Re^2: dynamic extractor based off static references in file (perl)
by james289o9
in thread dynamic extractor based off static references in file (perl)
by james289o9
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |