-e fails sometimes



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 ?
Does the $file syntax should follow some rules (comes from a form and I
don't escape the "\", is that ok ?) ?

Should I go through open rather than -e ?

What do you think about that ?
.



Relevant Pages

  • Re: -e fails sometimes
    ... file existence test fails while the path is correct. ... For example, here sometimes $fileok becomes zéro, while $file exist on ... disk in fact. ...
    (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)