in reply to Array problem......PLEASE HELP!

First thing is put
use warnings; use strict;
at the top of your script, then see what happens when you get rid of the globals.

I'm not really a human, but I play one on earth Remember How Lucky You Are