in reply to Can I see "requires"?

I would do it like this. I used "push" to add to the initial array, and I also used UNIVERSAL::require to avoid using eval.
#!/usr/bin/perl -sl use strict; use warnings; require UNIVERSAL::require; my(@modules) = qw/Test::More Test::HasVersion/; my $module = $modules[0]; $module->require or die $@; print $module; $module = $modules[1]; $module->require or die $@; print $module; push(@modules, 'Test::Simple'); $module = $modules[2]; $module->require or die $@; print $module;
Do this each time you require. Later in the script, you can see what you required by simply calling
print @modules;