1 # This library is deprecated and unmaintained. It is included for
2 # compatibility with Perl 4 scripts which may use it, but it will be
3 # removed in a future version of Perl. Please use the File::Find module
7 # require "finddepth.pl";
9 # &finddepth('/foo','/bar');
12 # where wanted does whatever you want. $dir contains the
13 # current directory name, and $_ the current filename within
14 # that directory. $name contains "$dir/$_". You are cd'ed
15 # to $dir when the function is called. The function may
16 # set $prune to prune the tree.
20 # find / -name .nfs\* -mtime +7 -exec rm -f {} \; -o -fstype nfs -prune
26 # (($dev,$ino,$mode,$nlink,$uid,$gid) = lstat($_)) &&
30 # ($nlink || (($dev,$ino,$mode,$nlink,$uid,$gid) = lstat($_))) &&
38 *name = *File::Find::name;
39 *prune = *File::Find::prune;
40 *dir = *File::Find::dir;
41 *topdir = *File::Find::topdir;
42 *topdev = *File::Find::topdev;
43 *topino = *File::Find::topino;
44 *topmode = *File::Find::topmode;
45 *topnlink = *File::Find::topnlink;
48 &File::Find::finddepth(\&wanted, @_);