in reply to Dynamically wrapping multiple modules
or the symbol table lookup equivalent:$ref_to_desired_hash = do { no strict "refs"; \%{"MyModule::$cc::Hash" +} };
If you do have control of the modules, have each one export the hash to a single name, and just eval "use MyModule::$cc".$ref_to_desired_hash = \%{$MyModule::{$cc."::"}{Hash}};
|
|---|