This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make C<undef ~~ 0> and C<undef ~~ ""> not match (like in 5.10.0)
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Wed, 1 Jul 2009 10:28:04 +0000 (12:28 +0200)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Wed, 1 Jul 2009 10:28:04 +0000 (12:28 +0200)
commitfb51372e8e462d7f3320e8a1b91a913f976aae12
treea6123ddad0e335ee368d524bcad78e628f526803
parent9b5b006ca2dcfa112f22578f899526bce7d5e411
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.
pod/perlsyn.pod
pp_ctl.c
t/op/smartmatch.t
t/op/switch.t