halfcountplus has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to do this (the examples are core modules just to make the point):

no strict; my @required = ( File::Basename, File::Copy, File::Find ); use strict; my @missing; foreach (@required) { eval { require }; push @missing, $_ if $@; }

But it does not work ("Can't locate File::Basename..." etc). What's the problem and is there any way around it?