in reply to Re: Empty qr// fails to match -- Is this known bug?
in thread Empty qr// fails to match -- Is this known bug?
No, I still say it is a bug. Especially since print qr// prints a non-empty string, (?-xism:), and /(?-xism:)/ is not interpretted as an empty regex. More to the point, this rather clearly violates the principle of "least surprise". It isn't even useful. I'd actually prefer that even /$empty_string/ not trigger the "empty regex" special behavior. But it seems very clear to me that /$empty_regex/ should not trigger this behavior.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Empty qr// fails to match -- Is this known bug? (bug)
by chibiryuu (Beadle) on Oct 23, 2008 at 15:04 UTC | |
|
Re^3: Empty qr// fails to match -- Is this known bug? (bug)
by chromatic (Archbishop) on Oct 23, 2008 at 17:39 UTC | |
|
Re^3: Empty qr// fails to match -- Is this known bug? (bug)
by rir (Vicar) on Oct 23, 2008 at 16:23 UTC | |
by chibiryuu (Beadle) on Oct 23, 2008 at 17:11 UTC | |
by rir (Vicar) on Oct 23, 2008 at 20:35 UTC |