You could look into using Storable.
In reply to Re: Passing data from script to script. by liverpole in thread Passing data from script to script. by nasa