in reply to Script doesn't enter while loop.

Well the line: open FILE or die "Couldn't open file $FILE: $!\n"; seems a bit off. I did this in a script with warnings and strict turned on and got a few messages. Could that be causing a problem?