in reply to Data::Dumper

Another Data::Dumper trick- For quick and dirty state persistence over multiple invocations of a program, use a single hash for all your state info. Dumper() a reference to it into a file when the program exits, and require() that file the next time the program starts up. booom. You're right back where you left off.