in reply to Extending and Preserving Array State through Recursive Function Calls
I believe my answer there may be useful to you.
Re: Global variables
HTH
Yves / DeMerphq --- Writing a good benchmark isnt as easy as it might look.