Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Shortcut operator for $a->{'b'}=$b if $b;

by rokadave (Sexton)
on Sep 20, 2005 at 16:40 UTC ( #493510=note: print w/replies, xml ) Need Help??


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 (Pope) 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).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://493510]
help
Chatterbox?
[choroba]: fortunately, it wasn't that hard to replace the method and fix a few remaining failures due to the changes we did to the codebase over the years
[marinersk]: choroba Sounds like a process improvement opportunity; tests may not all need to be run, but they should all be compiled with perl -c before check-in/promotion happens.
[choroba]: so, now I have the test, so I can start making changes in the code. Back to the original ticket, yay!
[marinersk]: I definitely love it when my $current_taask=& taskPop(); if ($current_task eq $original_task) { } is true.
[marinersk]: s/taask/task/g;

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (14)
As of 2017-05-25 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?