in reply to Re: Using arbitrary packages
in thread Using arbitrary packages

In a nutshell, I'd like to have a config file that contains module names and function names. I want to read the config file, 'use' all the modules, and then make the function calls as given in the config file.

It's all trusted data, since it's all being run locally.

---
A fair fight is a sign of poor planning.

Replies are listed 'Best First'.
Re^3: Using arbitrary packages
by fergal (Chaplain) on Jul 12, 2004 at 22:43 UTC
    Perhaps you should use
    do $filename;
    and have actual real Perl in the file that looks like
    use Module1; use Module2; function1(); function2();
    it will run faster. No point in inventing your own mini perl parser. Especially if in the future you decide you need to start adding arguments to your functions etc.