in reply to Re: Re: constant and eval (are they enemies?)
in thread constant and eval (are they enemies?)

Why can't you do
require constant; constant::->import($name => $value);
?

-Anomo

Replies are listed 'Best First'.
•Re: Re: Re: Re: constant and eval (are they enemies?)
by merlyn (Sage) on May 24, 2002 at 00:28 UTC
    That's happening at runtime, not compile time. While you could put a BEGIN block around it, the code I posted elsewhere in this thread copies the method of the module, without even having to invoke the overhead of the module.

    -- Randal L. Schwartz, Perl hacker