in reply to Check if module is installed

I wonder if you can use something like this?
#!/usr/bin/perl use strict; use ExtUtils::Installed; my $check_mod = ExtUtils::Installed->new(); die "File::Find is not installed" unless ( grep /File::Find/, $check_mod->modules() );