I have successfully checked a file in the same dir ,
my question is do I have to chdir when doing a
if (-e filename.dat)
and then change back to the cgi-bin dir?

www.mysite.com/cgi-bin is where my perl files are.
www.mysite.com/html is where the file I want to check is.

chdir "/html";
if (-e filename.html)
{print qq|File Found|; }
else {print qq|File NOT found|;}
chdir"/cgi-bin";

I tried looking for files in other dirs using 
if (-e .../html)
etc.. but with no success.


do I make sence?
Lou

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to