Your skill will accomplish what the force of many cannot |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I see what you mean. File::Find isn't about "finding files", but is a tool for recoursing through a directory tree, and performing an action on some/all of the files/directories. To check for the existence of a file/directory you can use the file tests that come with perl itself (http://perldoc.perl.org/functions/-X.html). for example if you have a $path, -e $path will return whether the path exists, -d $path will return true if the path is of a directory, and -f $path will return true if the path is of a file "Principle of Least Astonishment: Any language that doesn’t occasionally surprise the novice will pay for it by continually surprising the expert.. In reply to Re^4: A looping question
by Erez
|
|