develooper Front page | perl.perl5.porters | Postings from February 2008

Re: - #33244: -x operator fails under 5.10

Thread Previous
February 14, 2008 01:06
Re: - #33244: -x operator fails under 5.10
Message ID:
>>>>> On Wed, 13 Feb 2008 21:44:07 -0500, "Matthew Persico" <> said:

  > Folks, I may have made a mistake. I reported a Perl 5.10 bug using the
  > specific pragma entry in instead of reporting a general
  > bug to perl5-porters. Anyway, please find the ticket at -
  > #33244: -x operator fails under 5.10. I think it's a problem with the
  > use filetest pragma packaged with 5.10

What you describe there is I think documented behaviour. From the
filetest manpage:

    Limitation with regard to _

    Because access() does not invoke stat() (at least not in a way
    visible to Perl), the stat result cache "_" is not set. This means
    that the outcome of the following two tests is different. The
    first has the stat bits of /etc/passwd in _, and in the second
    case this still contains the bits of /etc.


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About