On Tue, Jun 26, 2001 at 12:17:50PM -0400, Richard J. Barbalace wrote:

> Trying to do this gives a warning.  For example:
>      package MyPackage;
>      use Flakey;
>      .....
>      package MyPackage::A;
>      .....
>      package MyPackage::C;
>      # Test if Flakey is compatible with MyPackage::C
>      use MyPackage;  # Required since we're not in MyPackage
> 
> If I want to test each of the sub-packages, I have to "use MyPackage"
> (or something equivalent).  Initially I thought the warnings might
> result because "use" is really a BEGIN block, but replacing it with
> "require" and "import" statements cause other problems.

>From this it seems to me as though you have everything in the same file.
Is that correct?  If so, I would suggest splitting the various packages
out into separate files, or at least splitting out the base class, and
from there I would be surprised if everything didn't "just work".

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

Reply via email to