On Sat, Oct 2, 2010 at 1:58 PM, Florian Ragwitz <rafl@debian.org> wrote: > This very much makes sense to me, and I've implemented a ${^PHASE} > global allowing to differentiate between these phases: > > - initial interpreter construction > - initial compile-time > - running CHECK blocks > - running INIT blocks > - run-time > - running END blocks > - global destruction > BEGIN { $SIG{__WARN__} = sub { ... }; } 123; print 456; If the above occurred in a module, your scheme would report run-time in the callback were the module required then. I would like the handler to know it was called by the compiler.Thread Previous | Thread Next