In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/54c2a6472e2daaf3a07b6fecd7f34ff00e7b6ad8?hp=baacc348d003915eb2eb0fe2118b00c456684c98>
- Log ----------------------------------------------------------------- commit 54c2a6472e2daaf3a07b6fecd7f34ff00e7b6ad8 Author: Tony Cook <t...@develop-help.com> Date: Tue May 13 11:05:56 2014 +1000 Doug Bell is now a perl author M AUTHORS commit e10c9f69126aee73022a81a13c15f7b7bc5dce48 Author: Doug Bell <madcity...@gmail.com> Date: Tue May 13 10:50:41 2014 +1000 move given/when ~~ note below item introducing it The note explaining to use $c ~~ $_ instead of $_ ~~ $c was put under the item introducing all binary operators, and not the one mentioning the explicit smartmatch operator. M pod/perlsyn.pod ----------------------------------------------------------------------- Summary of changes: AUTHORS | 1 + pod/perlsyn.pod | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AUTHORS b/AUTHORS index 58c16ac..bdc5529 100644 --- a/AUTHORS +++ b/AUTHORS @@ -340,6 +340,7 @@ Dominic Dunlop <d...@computer.org> Dominic Hargreaves <d...@earth.li> Dominique Dumont <dominique_dum...@grenoble.hp.com> Dominique Quatravaux +Doug Bell <madcity...@gmail.com> Doug Campbell <s...@ampersand.com> Doug MacEachern <do...@covalent.net> Douglas Christopher Wilson <d...@somethingdoug.com> diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod index 9ce8b3c..244372c 100644 --- a/pod/perlsyn.pod +++ b/pod/perlsyn.pod @@ -958,6 +958,9 @@ the form C<!/REGEX/>, C<$foo !~ /REGEX/>, or C<$foo !~ EXPR>. A smart match that uses an explicit C<~~> operator, such as C<EXPR ~~ EXPR>. +B<NOTE:> You will often have to use C<$c ~~ $_> because the default case +uses C<$_ ~~ $c> , which is frequentlythe opposite of what you want. + =item Z<>4. A boolean comparison operator such as C<$_ E<lt> 10> or C<$x eq "abc">. The @@ -965,10 +968,6 @@ relational operators that this applies to are the six numeric comparisons (C<< < >>, C<< > >>, C<< <= >>, C<< >= >>, C<< == >>, and C<< != >>), and the six string comparisons (C<lt>, C<gt>, C<le>, C<ge>, C<eq>, and C<ne>). -B<NOTE:> You will often have to use C<$c ~~ $_> because -the default case uses C<$_ ~~ $c> , which is frequently -the opposite of what you want. - =item Z<>5. At least the three builtin functions C<defined(...)>, C<exists(...)>, and -- Perl5 Master Repository