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
In reply to Re^2: Empty qr// fails to match -- Is this known bug? (bug)
by tye
in thread Empty qr// fails to match -- Is this known bug?
by chibiryuu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |