for my $module ( @ARGV ) { say "try to load $module"; eval{ require $module; 1; } and do { say "$module version: " . $module->VERSION; }; }