Re: -e fails sometimes



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

.



Relevant Pages

  • -e fails sometimes
    ... file existence test fails while the path is correct. ... disk in fact. ... Is-it a -e stability issue? ...
    (comp.lang.perl.misc)
  • Re: -e fails sometimes
    ... file existence test fails while the path is correct. ... don't escape the "\", is that ok ?) ... Experienced Perl programmer: http://castleamber.com/ ...
    (comp.lang.perl.misc)