in reply to Re^4: Array Problem
in thread Array Problem

you're getting that warning (and an infinite loop also) because you're using "while" instead of "foreach".

while only automatically sets $_ in the following case:
while (<FILE>)
otherwise, it does not.