Checking for existence of Perl packages

Eg. if you want to check for "Net::DNS", try this:
perl -e 'require Net::DNS'
You'll get an error like "Can't locate Net/DNS.pm in @INC..." if you don't have the given Perl package installed.