Thus it was written in the epistle of Steve Simmons,
>
> > . . . but I already promised the CPAN
> > workers that I'd make that last statement false. There's no reason in
> > principle why two modules shouldn't be allowed to have their own view
> > of reality. Just because you write Foo::bar in your module doesn't mean
> > that Perl can't know which version of Foo:: you mean.
>
> OK, let's let someone else get into the conversation.
I'll take that as my cue ;-).
> DS> . . . If you use C in package A, and also in package B, which do you
> DS> see when you're in main and access $C::bar?
>
> LW> I dunno. I don't imagine the situation will arise that often.
>
> It may not happen often, but once is enough. IMHO the answer is `in load
> order' unless the programmer does something explicit to resolve the
> issue.
<*shudder*> This whole business is getting pretty scary. Best that I can
tell, what y'all are saying is that if A and B happen to both load the same
version of C, then A can say $C::flag = 1 and B can see that, but if they
load differing versions, then they can't (as there are two copies of $C::flag).
Oi! If you are going to split it up in that fashion, I would think that you
would have to go all the way. No matter what version is available, every
load of a package from another package is private to that package. A has it's
mirage of C and B has it's mirage of C, even if they loaded the same version,
and main has no access to either.
I happen to have a profiler out there which uses the DB package. What happens
if someone loads SmallProf and DProf and the perl debugger all at once?
Ted
--
Ted Ashton ([EMAIL PROTECTED]), Info Sys, Southern Adventist University
==========================================================
Mathematics is not only real, but it is the only reality. That is that
entire universe is made of matter, obviously. And matter is made of
particles. It's made of electrons and neutrons and protons. So the entire
universe is made out of particles. Now what are the particles made out of?
They're not made out of anything. The only thing you can say about the
reality of an electron is to cite its mathematical properties. So there's a
sense in which matter has completely dissolved and what is left is just a
mathematical structure.
-- Gardner, Martin
==========================================================
Deep thoughts to be found at http://www.southern.edu/~ashted