in reply to Re^2: Perl style: Arguing against three-argument join() (++join '')
in thread Perl style: Arguing against three-argument join()

$html ~= [~] createLink( $USER, "you" ), " have a ", $rating.fmt("%+.2f"), " rating";
Couldn't that be written as:
[~=] $html, createLink( $USER, "you" ), " have a ", $rating.fmt("%+.2f +"), " rating";

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Replies are listed 'Best First'.
Re^4: Perl style: Arguing against three-argument join() (++join '')
by TimToady (Parson) on Jan 25, 2008 at 00:17 UTC
    Nope, because that would come out to A ~= B ~= C ~= D, which would only work if assignment were left associative.
      If attempts to modify a constant item instead created a temporary variable to put it in should it be the RHS, then that would work regardless of associativity.

      My criteria for good software:
      1. Does it work?
      2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?