Re: [Boston.pm] Non-matching regexp doesn't set $1 to undef. Should it?

2004-04-20 Thread Linda L. Julien
From: Ron Newman <[EMAIL PROTECTED]> Date: Tue, 20 Apr 2004 23:06:12 -0400 If I try to match a regular expression that contains parentheses, and the match fails, shouldn't $1 be set to undef rather than keeping whatever value it had before? Nope. It will still have its old valu

[Boston.pm] Non-matching regexp doesn't set $1 to undef. Should it?

2004-04-20 Thread Ron Newman
If I try to match a regular expression that contains parentheses, and the match fails, shouldn't $1 be set to undef rather than keeping whatever value it had before? The following program demonstrates what looks to me like very strange behavior. Adding "local $1 = undef;" in the position sh