This does a basic check if something is a perl script or not. WWW: http://search.cpan.org/dist/Script-isAperlScript/