On 16/10/2011 00:08, JPH wrote:
I am passin a two-dimensional array to a sub and when the sub returns, the original array has changed. Eventually I want to pass the array into a recursive sub, so I want to find a way to circumvent this behaviour. Notice how my global is "@a" and the sub local is "@b" - Why is this happening - How can I properly pass a two dimensional array to a sub, without the array in main changing? Ideas anyone?
Your problem fascinates me. Please would you help us to understand the purpose of your program? Rob -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/