in reply to read/write perl variables to/from file

If Storable does not suit your requirements, you also might want to try out some of the various config files. Among others there are:
  • Comment on Re: read/write perl variables to/from file