in reply to Combining perl scripts
Sounds to me like you want a module which does serialization... Check Re: How can I visualize my complex data structure? for some options.
HTH,
Update: added another linky...