Guest_imported
New member
- Jan 1, 1970
- 0
I'm using something like if( -e $filename) to check if a file exists or not, if it doesn't, it gets created and header information put in it. But I'm not getting consistent results back from it. For example, it will correctly work out that the file doesn't exist and create it/add headers, but then the next time the script is run, it says the file doesn't exist again. I'm running ActiveState Perl and Apache under Windows. Do you have any idea why it doesn't work correctly? Or how about another way to check if a file exists?