in reply to Re: How can I make File::Find skip over dirs to which I don't have permission?
in thread How can I make File::Find skip over dirs to which I don't have permission?
Anyway, in regards to using -r -x (or other tests), that will keep me from churning them through the subroutine, like so:
But I am wondering how to keep Find::File from attempting to enter unpermitted subdirectories before they get processed by the subroutine.find ( \&procfile, @DIRS ); sub procfile { return if ! -r -x; # do something to everything else here }
Prost!
|
|---|