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

Well, that explains it. use Foo does this:
BEGIN { require Foo; Foo->import; }
If you use OO, require will find your module, but of course the module will still create the Data::Validator::OO package and not an OO package, causing the following OO->import to fail (silently).

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re^3: use constant and exporter
by Flame (Deacon) on Jan 28, 2003 at 23:08 UTC
    Yah, the funny thing is, I think I knew about that once... then forgot about it... Oh well... thanks for the suggestions, at least your versions are better looking than mine. Encouraged me to clean up what I had :)



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

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