4 # &find('/foo','/bar');
7 # where wanted does whatever you want. $dir contains the
8 # current directory name, and $_ the current filename within
9 # that directory. $name contains "$dir/$_". You are cd'ed
10 # to $dir when the function is called. The function may
11 # set $prune to prune the tree.
13 # This library is primarily for find2perl, which, when fed
15 # find2perl / -name .nfs\* -mtime +7 -exec rm -f {} \; -o -fstype nfs -prune
17 # spits out something like this
21 # (($dev,$ino,$mode,$nlink,$uid,$gid) = lstat($_)) &&
25 # ($nlink || (($dev,$ino,$mode,$nlink,$uid,$gid) = lstat($_))) &&
30 # Set the variable $dont_use_nlink if you're using AFS, since AFS cheats.
34 *name = *File::Find::name;
35 *prune = *File::Find::prune;
36 *dir = *File::Find::dir;
37 *topdir = *File::Find::topdir;
38 *topdev = *File::Find::topdev;
39 *topino = *File::Find::topino;
40 *topmode = *File::Find::topmode;
41 *topnlink = *File::Find::topnlink;
44 &File::Find::find(\&wanted, @_);