in reply to Re^2: Pass by value acts like pass by referencein thread Pass by value acts like pass by reference
That was what I ended up doing, thanks to to tilly's suggestion. Thank you to all who responded.