Re: -e fails sometimes
- From: "Paul Lalli" <mritty@xxxxxxxxx>
- Date: 31 Mar 2006 12:08:25 -0800
Asterbing wrote:
Hello. Under ActivePerl/Apache2/Win2k, sometimes (not everytime) the
file existence test fails while the path is correct.
For example, here sometimes $fileok becomes zéro, while $file exist on
disk in fact.
if (! -e $file){$fileok = 0;}
Is-it a -e stability issue ?
No, it's a "your code is wrong" issue. But you haven't shown us any
code, so we don't know what's wrong with it.
Does the $file syntax should follow some rules (comes from a form and I
don't escape the "\", is that ok ?) ?
What \ are you talking about? Please post a short-but-complete script
that demonstrates the error you're having.
Should I go through open rather than -e ?
No, since they do very different things.
What do you think about that ?
I think you should read and follow the Posting Guidelines for this
group.
Paul Lalli
.
- Follow-Ups:
- Re: -e fails sometimes
- From: John Bokma
- Re: -e fails sometimes
- From: Asterbing
- Re: -e fails sometimes
- References:
- -e fails sometimes
- From: Asterbing
- -e fails sometimes
- Prev by Date: FAQ 2.15 Where can I buy a commercial version of perl?
- Next by Date: Re: -e fails sometimes
- Previous by thread: -e fails sometimes
- Next by thread: Re: -e fails sometimes
- Index(es):
Relevant Pages
|