in reply to Re^2: How to pass two arrays to a sub?
in thread How to pass two arrays to a sub?
True. I was trying to be as similar as possible to the original code to make it easier to understand.
From the supplied question I can't really tell if the local copy is needed or not, so I played safe.