in reply to Maintaining state in modules

I use Storable for saving state, and usually write the file to the home directory as .something-meaningful