opendir, readdir, closedir |
find(\&wanted, @directories_to_search);
#!/usr/bin/perl
use File::Find;
$path = "/root/myperl/chap13/temp_top";
find(\&wanted, $path);
sub wanted {
print "we will change \"$File::Find::name\" permission to 777\n";
chmod 0777, $File::Find::name;
}
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |