File Locked After Close?

Hi, The last line of the following code snippet fails: open FILE, '<file.dat' die '...'; process(FILE); close FILE; system('command file.dat'); It looks like FILE is still locked because if I break out the last line into a separate script, it works. In fact, if I open FILE on another file, the last line also works. I'd like to fix the issue