> 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)
I don't think you will get success without a quote for 'filename.dat'. It could be the return value for sub filename concating sub dat, be nothing. > > I tried looking for files in other dirs using > if (-e .../html) > etc.. but with no success. By giving the full path ( not url ) of the file, you will get your job done without chdir. HTH, Bee -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>