Hi,
What, specificly don't work?
Do you have a file called 'test_predictions_1', that have ids in the range 1 to 1000?
Are the
print "file: $file\n"; and
print "id: $id\n"; printing what you expect?
Why do you have a second
close (LOOKUP); outside the foreach loop?
Can you provide us some specific data that you think should work and is not working?