--- Sébastien Aperghis-Tramoni <[EMAIL PROTECTED]> wrote:

> Hmm.. As is, relative.pm already allows you to do that (thanks to Ken
> Williams' suggestion):
> 
>      package My::Enterprise::Framework;
>      use relative;
>      my $Customer = import relative qw(Report Customer);
>      my $customer = $Customer->new($id);
> 
> That is, import returns the full names of the successfully loaded  
> modules in list context, or the last one in scalar context. Is this  
> sufficient or did I misunderstand you?

Ah, I didn't notice that.  I think that would be fine.  The only caveat
being that this is lexically scoped, but I don't *think* there is
problem there.

Thanks for a nice module!

Cheers,
Ovid

--
Buy the book  - http://www.oreilly.com/catalog/perlhks/
Perl and CGI  - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog     - http://use.perl.org/~Ovid/journal/

Reply via email to