I have a Perl TK script that parses 2 input files, comparing field by field. It identifies differences, tags them to print in a different color, and inserts them into a textbox identified by the particular record type. This process can be very time consuming depending on the size of the output. I currently save and reload data that is already processed by building the data into an array, and dumping the array to a file - the reload reprocesses the dumped array (which can take almost as much time as the original run).
Does Perl or TK have a method to save the current state of a program/display and just reload it into memory rather than reprocess the save file?