in reply to Re: Intercepting compile time blocks like BEGIN {}
in thread Intercepting compile time blocks like BEGIN {}

Well that's one of my questions. :)

As I said "I took a look into Safe" but couldn't figure out how to achieve this goal.

Safe seams mainly to intercept dedicated opcodes, are there special opcodes for CTBs?

AFAIK opcodes are executed after compilation (to opcodes) so it should be already to late.

Cheers Rolf

  • Comment on Re^2: Intercepting compile time blocks like BEGIN {}