in reply to Re: eval "use $module" doesn't
in thread eval "use $module" doesn't

Doing things at CHECK time limits your module to being used during the initial compile of a script. People like to be able to require or eval "use" modules later than that.

Replies are listed 'Best First'.
Re^3: eval "use $module" doesn't
by fergal (Chaplain) on Aug 03, 2004 at 18:50 UTC
    That's fair enough I suppose. Ideally perl would treat CHECK and INIT blocks as a queue which can be filled up during any compile and are emptied out again after the compile, rather than giving "too late for INIT" messages. Perl 6 perhaps.