in reply to Re: die in regexp
in thread die in regexp

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.

Replies are listed 'Best First'.
Re^3: die in regexp
by dave_the_m (Monsignor) on Jul 04, 2006 at 11:06 UTC
    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.