In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/bf55d65d91cd95545972d61170706df20eba4db2?hp=7c0c544ccc3283021df458dc39fb3638b44c2d6e>

- Log -----------------------------------------------------------------
commit bf55d65d91cd95545972d61170706df20eba4db2
Author: Ludovic E. R. Tolhurst-Cleaver <ca...@ltcdev.com>
Date:   Mon Aug 17 21:30:59 2015 -0400

    Clarify functioning of '||' operator.
    
    Follow wording from Camel book, 4th ed., p. 120, per suggestion by
    Ludovic E. R. Tolhurst-Cleaver.  Add Ludovic E. R. Tolhurst-Cleaver
    to AUTHORS.
    
    For: RT #125802
-----------------------------------------------------------------------

Summary of changes:
 AUTHORS        | 1 +
 pod/perlop.pod | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/AUTHORS b/AUTHORS
index c795d6b..c844e9e 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -735,6 +735,7 @@ Louis Strous                        <louis.str...@gmail.com>
 Luc St-Louis                   <luc.st-lo...@ca.transport.bombardier.com>
 Luca Fini
 Lucas Holt                     <l...@foolishgames.com>
+Ludovic E. R. Tolhurst-Cleaver                 <ca...@ltcdev.com>
 Lukas Mai                      <l....@web.de>
 Luke Closs                     <lu...@cpan.org>
 Luke Ross                      <luker...@gmail.com>
diff --git a/pod/perlop.pod b/pod/perlop.pod
index bed0695..b7ebbb1 100644
--- a/pod/perlop.pod
+++ b/pod/perlop.pod
@@ -924,9 +924,9 @@ portable way to find out the home directory might be:
 In particular, this means that you shouldn't use this
 for selecting between two aggregates for assignment:
 
-    @a = @b || @c;             # this is wrong
-    @a = scalar(@b) || @c;     # really meant this
-    @a = @b ? @b : @c;         # this works fine, though
+    @a = @b || @c;            # This doesn't do the right thing
+    @a = scalar(@b) || @c;    # because it really means this.
+    @a = @b ? @b : @c;        # This works fine, though.
 
 As alternatives to C<&&> and C<||> when used for
 control flow, Perl provides the C<and> and C<or> operators (see below).

--
Perl5 Master Repository

Reply via email to