in reply to File testing via list of test operators

file test operators are implemented using stat and cache results into special filehandle _(underscore) so just use stat, or File::stat and forget about eval :)
  • Comment on Re: File testing via list of test operators

Replies are listed 'Best First'.
Re^2: File testing via list of test operators
by robh (Initiate) on Dec 21, 2010 at 14:38 UTC
    Thanks - I've looked at stat and there's no nice way to perform a set of tests. I'd have to use the "cando" method and the symbols in Fcntl. I'd like to not do that if I have to :)