in reply to Re: Re: use constant and exporter
in thread use constant and exporter

I took your example exactly Flame, except that I commented out the "use Tests" (I don't have that module) and the "use Autoloader" (it causes errors if the package isn't installed, and I was testing it from the current directory). The example worked with no problem.

(It also works with MyPackage::VALID, but I wouldn't call that an import.)

I'm wondering if perhaps you aren't testing the package you think you are. Is the right copy of MyPackage.pm in your @INC path first? Did you reinstall the package after making the changes?

Replies are listed 'Best First'.
Re: Re: Re: Re: use constant and exporter
by Flame (Deacon) on Jan 28, 2003 at 05:37 UTC
    The package is in the same directory as the one I'm testing this in. It's part of my testing as I write mypackage (named, for now, Data::Validate::OO). (Reference: Data Validation Tests, further references linked to from there.)

    I'll see what happens if I remove a few lines here and there...



    My code doesn't have bugs, it just develops random features.

    Flame ~ Lead Programmer: GMS (DOWN) | GMS (DOWN)