develooper Front page | perl.perl5.changes | Postings from May 2020

[Perl/perl5] 88c28b: perlop - Add more examples for chainedcomparisons

From:
Dan Book
Date:
May 20, 2020 21:45
Subject:
[Perl/perl5] 88c28b: perlop - Add more examples for chainedcomparisons
Message ID:
Perl/perl5/push/refs/heads/blead/ec89cf-db6b97@github.com
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 88c28b3819570e2ea7914875b25f0f40654c570d
      https://github.com/Perl/perl5/commit/88c28b3819570e2ea7914875b25f0f40654c570d
  Author: Dan Book <grinnz@grinnz.com>
  Date:   2020-05-21 (Thu, 21 May 2020)

  Changed paths:
    M pod/perlop.pod

  Log Message:
  -----------
  perlop - Add more examples for chained comparisons

The distinction between how many times an expression may be evaluated and how many times its result may be fetched is somewhat confusing. This calls out the distinction earlier in the text rather than just buried in a paragraph, and adds examples to help explain the difference.


  Commit: db6b975f9cb8d5cea11d22f5f915e92c22c51889
      https://github.com/Perl/perl5/commit/db6b975f9cb8d5cea11d22f5f915e92c22c51889
  Author: Dan Book <grinnz@grinnz.com>
  Date:   2020-05-21 (Thu, 21 May 2020)

  Changed paths:
    M pod/perlop.pod

  Log Message:
  -----------
  perlop - Use a tied scalar directly in chained comparison examples


Compare: https://github.com/Perl/perl5/compare/ec89cf10fbe4...db6b975f9cb8



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About