On Mon, Aug 13, 2001 at 09:26:30AM +0200, Abigail wrote:
> > When existing application code uses a module in the old namespace and it
> > is dropped onto a box with a perl install that doesn't already have the
> > old module.  Not making existing applications need to be rewritten just
> > because we want to shuffle modules around the namespace is a win.
> 
> 
> So, this application cannot find the module. What BEGIN block is it 
> then supposed to run?
> 

Let's say the old module was Foo::Bar and the new module is Foo::Algorithms::Bar;

In the distribution for Foo::Algorithms::Bar, we include a wrapper "Foo/Bar.pm"
as well as "Foo/Algorithms/Bar.pm".  Foo::Bar would include the aforementioned
BEGIN block and the apropriate wrappers to hand everything off to 
Foo::Algorithms::Bar.  Or, if we wanted to, we could upload one last version of 
Foo::Bar containing our wrappers which depends on the new package...


> 
> 
> Abigail
> 

-- 
jesse reed vincent -- [EMAIL PROTECTED] -- [EMAIL PROTECTED] 
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

As I sit here alone looking at green text on a laptop in a mostly bare room listening 
to loud music wearing all black, I realize that that it is much less cool in real life 
:)
                        --Richard Tibbetts
        

Reply via email to