sigh.. so sorry for not being more exact...
I did use the quotes
if (-e 'filename.dat')

I guess I will have to find out the full path...

Thanks
Lou

----- Original Message ----- 
From: "Bee" <[EMAIL PROTECTED]>
To: "Luinrandir Hernsen" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, October 14, 2004 4:54 PM
Subject: Re: Need to check file


> > 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>


Reply via email to