in reply to Re: Re: Unexpected 'panic: top_env' in regex match
in thread Unexpected 'panic: top_env' in regex match

The expression engine is not re-entrant. You attempted to do a substitution during an eval during a conditional in a match. Also, it looks like you forgot the include the closing curly brace for your eval block right after the {just };print). I've had similar success with re-entrant regexes. Some work, some fail miserably. It's just sheer luck (or astounding insight) that keeps two simultaneously executing regexes from killing each other.


Seeking Green geeks in Minnesota

Replies are listed 'Best First'.
Re^3: Unexpected 'panic: top_env' in regex match
by mowgli (Friar) on Jan 21, 2003 at 19:47 UTC

    Thank you a lot! The missing curly brace is probably just a typo in the node's text; the script itself, with the corrected assertion, works. With regard to nested regexes, are there plans to remove this limitation in Perl 6? Granted, it might not be a feature that would often be used, but then, the same holds probably true for match-time code evaluation, anyway.

    --
    mowgli