You could write the search of the site in PERL, and the hits against the database in PHP. Or..... Run a nightly cron to run a PERL to load the database with stuff, then do the querries with PHP.... It all depends. Both languages are easy to learn and remarkably similar.