I\'d like to be able to run this test on each module in the list. Not sure how to ger perl looping over each item.
use Module::Load; eval { load Image::Mag
Have a try with:
#!/usr/bin/perl use 5.010; use strict; use warnings; my @modules = qw( Bit::Vector Carp::Clan Check::ISA DBD::Oracle DBI Tree::Simple ); for(@modules) { eval "use $_"; if ($@) { warn "Not found : $_" if $@; } else { say "Found : $_"; } }