in reply to Any chance to redefine "eval BLOCK" in the package?

Or may be you can tell me how to prevent exceptions catching in some package without source code modification of this package?

Replace the eval opcode with one which does nothing while the current package is your target package. You'll have to write XS for this to work.

From the world of pure Perl, you're unlikely to get this to work.


Improve your skills with Modern Perl: the free book.

Replies are listed 'Best First'.
Re^2: Any chance to redefine "eval BLOCK" in the package?
by OlegG (Monk) on Sep 15, 2011 at 14:20 UTC
    Ok, that sounds good. I'll try.
    Found some example of opcode patching in the Coro::Select module. If you know other places where I can read about that, please let me know.