On 12 February 2010 08:58, Steffen Schwigon <s...@renormalist.net> wrote: > Fergal Daly <fer...@esatclear.ie> writes: >> BTW, python gets this right >> >> from Foo.Bar import Buzz >> ... >> Buzz.ThatThingIWanted >> >> no danger of name clashes (you can import Buzz as some other name if >> there's another Buzz to import) and when reading the code, you know >> where every symbol originates. I started implementing this for Perl so >> that you could do >> >> use from Foo::Bar import Buzz; >> >> Buzz->ThatThingIWanted > > Did you already have a look at aliased.pm?
No but it looks like 1 half of what I'm talking about. It solves the class half of the problem. The function half isn't so hard to solve either but the real problem is knowing which solution to apply. You can make the user choose but by that time I gave up :) F > http://search.cpan.org/~ovid/aliased/lib/aliased.pm > > Not sure it's what you want as you seem to have already thought deeper > on this. > > Kind regards, > Steffen > -- > Steffen Schwigon <s...@renormalist.net> >