cleaned search.pl to compile