open(FILE, "file.txt");
@file = <FILE>;
close(FILE);
...
...
I then tried to see if the file exists using
if(-e @file){
print "File exists";
}
else{
print "File does not exist";
}
It always tells me that the file does not exist. What do I have to change or what am I doing wrong? Like I said, I have done this successfully many times, but not on my own computer. I am guessing that there is a slight change I have to make to run it on my computer. Thanks in advance!
D_O_N