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
Luc St-Louis <luc.st-louis@ca.transport.bombardier.com>
Luca Fini
Lucas Holt <luke@foolishgames.com>
+Ludovic E. R. Tolhurst-Cleaver <camel@ltcdev.com>
Lukas Mai <l.mai@web.de>
Luke Closs <lukec@cpan.org>
Luke Ross <lukeross@gmail.com>
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).