Pathologically Eclectic Rubbish Lister | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I don't think the latter part of that will work -- the OP said that the list is of filenames, e.g. "lib/Foo/Bar/Baz.pm", not package names, e.g. "Foo::Bar::Baz". And if the list were of package names, they would need to be converted to filenames to be used with require in the way you suggest, or instead be called in an eval:
The OP might want to look at Module::Require or UNIVERSAL::Require and see if either would be applicable/helpful for this situation. -xdg Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk. In reply to Re^2: Getting Module Names Dynamically and using it
by xdg
|
|