in reply to BAsic File I/O

Whenever this happens, the first step is to make your error message more informative. Try:

open(FILE,"test/$testfiles") or die "can't open file 'test/$testfiles' +: $!";
The $! will tell you what the OS thinks is the problem, and having the filename in the error message will help track down the problem as well.

-Blake