in reply to Parsing binary file during update
You may be reinventing the wheel. What kind of journal file is it? Have you searched for a Perl module that reads that file type?