Help for this page

Select Code to Download


  1. or download this
               sub wanted {
                   -l && !-e && print "bogus link: $File::Find::name\n";
               }
    
  2. or download this
    use File::Find;
    
    find(\&remove_broken_symlinks, '/path/to/start');
    ...
        unlink($_) or die "Can't unlink $File::Find::name: $!\n";
      }
    }