Re: RFC 144 (v1) Behavior of empty regex should be simple
[email protected] (John Porter) Wed, 13 Sep 2000 14:06:05 -0400
| Newsgroups | perl.perl6.language.regex |
|---|---|
| Message-ID | <[email protected]> |
John Porter wrote: > Mark Dominus <[email protected]>: > > > > This behavior should be changed. If the PATTERN is empty, Perl should > > look for the empty string. (That is, if the PATTERN is empty, it > > should always match.) > > Except perhaps for undef loperands? (matchees? bindees?) What did you think of this, M-J? I didn't see any mention of it in the RFC. Iow: undef $x; if ( $x =~ // ) { print "This should not have happened.\n"; } Can't the definedness of the bindee be tested before stringization? -- John Porter