in reply to how to use fgets to Break file into individual records
Show the data that you want to parse with Perl.
there are other ways to do this.