in reply to Loading a Module from a Variable

Any chance you could write the array to a file and then require the file?
my $temp_mod_name = 'tempmod.pm'; open TEMP, '>', $temp_mod_name or die "$temp_mod_name: $!\n"; print TEMP @mod; close TEMP; if (eval "require $temp_mod_name") { ....

Caution: Contents may have been coded under pressure.