in reply to Using regexes inside of (?{})

I'm fairly certian it's a known WONTFIX bug that the perl5 regex engine is non-reentrent. (IE it's considered unfixable without a near complete rewrite.) The perl6 one is being written from scrach, and explicitly will be, but it may or may not be retrofitable.


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

Replies are listed 'Best First'.
Re^2: Using regexes inside of (?{})
by diotalevi (Canon) on Dec 08, 2002 at 18:33 UTC

    Thanks for confirming that. It's just not documented perlre that the engine isn't reentrant.

    __SIG__ use B; printf "You are here %08x\n", unpack "L!", unpack "P4", pack "L!", B::svref_2object(sub{})->OUTSIDE;