in reply to Checking for modules

If you wanted check from within your script/program you could try something similar to the following (which is from Chapter 12 of the Perl Cookbook):

BEGIN { unless (eval "use $mod") { warn "couldn't load $mod: $@"; } }
I find this useful for version checking modules and throwing out meaningful errors to users, if they're lacking a particular module.