2009/7/1 I: > I think that for backward compatibility sake, and possibly for undef > commutativity sake, we should make undef ~~ 0 / "" not match. I'll do it > as soon as possible.
commit fb51372e8e462d7f3320e8a1b91a913f976aae12 Author: Rafael Garcia-Suarez <rgarciasuarez@gmail.com> Date: Wed Jul 1 12:28:04 2009 +0200
Make C<undef ~~ 0> and C<undef ~~ ""> not match (like in 5.10.0)
This makes ~~ commutative with regard to undef, and fixes an inconsistency, since C<undef ~~ [0]> was not matching, and ~~ should be distributive in this case.
Dave, can you consider this for inclusion in maint ?
No perldelta addition necessary, since we're actually restoring behaviour that was in 5.10.0.
|