in reply to Homework question - passing private variables back and forth between two scrips
I wonder if a look at this might help...