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...
In reply to Re: Combining perl scripts
by planetscape
in thread Combining perl scripts
by skyraven
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |