in reply to Re: Shortcut operator for $a->{'b'}=$b if $b;
in thread Shortcut operator for $a->{'b'}=$b if $b;

No correlation at all. This all started when I discovered the ||= operator, which test the assignee for truth, upon false assigns the assignor. I wanted to test the other side, and assign upon false.

I think my answer is no.
  • Comment on Re^2: Shortcut operator for $a->{'b'}=$b if $b;

Replies are listed 'Best First'.
Re^3: Shortcut operator for $a->{'b'}=$b if $b;
by ikegami (Patriarch) on Sep 20, 2005 at 17:02 UTC

    "assigns the assignor"? Every definition I can find for "assignor" defines it as the person (or in the case operator) who does the assignment. In other words, "=" is the assignor, not "$b".

    The standard terminology for assignments is "lvalue" for the variable receiving the value (which is usually on the *l*eft) and "rvalue" for the value being copied (which is usually on the *r*ight).