Using my you're scoping your variables.
In reply to Re: mying arrays? by Ryszard in thread mying arrays? by sulfericacid