On 6 Oct 2007, at 11:17, Sébastien Aperghis-Tramoni wrote:
I like the idea. Catalyst privately invents something like that,
so obviously there are other people who feel the same need.

Yes, POE also provide a similar mechanism, that's why I was thinking to provide a generic module to do that.

But I like neither the name nor the interface. How about this:

    package BigApp::Report;
    use subclass qw(..::Utils Create Publish);
# loads BigApp::Utils, BigApp::Report::Create, BigApp::Report::Publish

"subclass" would imply more OO semantic than I'd like, as the module just loads others modules, but I agree it's a better name than "relative" and I can't find a better one. Also agreeing for the API change. I know I was pondering about using ".." but can't remember why I didn't.

Would it also do

use relative [to => 'My::Big::Namespace'] => qw( This That Munger::Fast Munger::Precise );

?

--
Andy Armstrong, Hexten



Reply via email to