This is a no brainer install. Download the text file, change the name to perldigger.cgi, drop it in your CGI directory (/Library -> WebServer -> CGI-Executables by default), and change the file to executable (chmod 755 perldigger.cgi). Then just visit http://localhost/cgi-bin/perldigger.cgi (or similar depending on your setup).
Get the script and more info here:
http://sniptools.com/perldigger

