in reply to die in regexp

die, anonymous subs and accessing outer lexical vars, within re_evals are all currently very broken (in the sense that they may randomly coredump). Its something I'm still hoping to fix in time for 5.10.

Dave.

Replies are listed 'Best First'.
Re^2: die in regexp
by bart (Canon) on Jul 03, 2006 at 22:24 UTC
    Uh, his example is not inside a re_eval, is it? I assume that by that you mean (?{...}) and similar constructs inside the regex. (perldebguts talks about "code assertions in regexes", but that's about all I could find about them.)

    The right hand side of a substitution is not inside the regex.

    This piece of code doesn't mention "re_eval" in its error message:

    s/foo/die/e;
    It just says
    Died at test.pl line 3.

    I believe die is safe, there.

      Uh, his example is not inside a re_eval, is it?
      Ugh, that's what happens when reading web sites while having a cold :-(. Yes, I got completely the wrong end of the stick! die is safe in s//die/e.

      Dave.

Re^2: die in regexp
by powerman (Friar) on Jul 03, 2006 at 21:32 UTC
    Thanks!