Please consider adding use strict; to the top of your script to turn on Perl's strict variable checking. This would have caught the fact that $index is unused and might have pointed you in the right direction.
In reply to Re: Array problem
by Fastolfe
in thread Array problem
by curtisb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |