in reply to Import module code from external files?

Hm. If I'm understanding you, you want to be able to arbitrarily extend a base module at compile time.

Module::Pluggable, loading the plugins in a BEGIN block, perhaps? If your big module is easily divided into independent pieces, this would probably do the job.

You might look at App::Cmd for an example of this. It lets you build a CLI from a base class plus appropriately-named plugins.

  • Comment on Re: Import module code from external files?

Replies are listed 'Best First'.
Re^2: Import module code from external files?
by z_mikowski (Initiate) on Feb 17, 2010 at 23:14 UTC

    Thank you Pemungkah. I took a look at Pluggable, and it seems interesting. I may return to it if the approach I detailed above doesn't cut it.