in reply to Re^3: Thoughts on replacing -> with .
in thread Thoughts on replacing -> with .
It is like += and .=, which modify the left-hand side by the right hand side.
$a += $b adds the right hand side ($b) to the left hand side, $a, and assigns the result to $a.
$a .= $b appends $b to $a and assigns the result to $a.
$a ~= $b xor's $b and $a and assigns the result to $a.
As this is a relatively uncommon use, it maybe makes this interchange currently even harder to spot than later the use of =~ and ~=.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Thoughts on replacing -> with .
by Ralesk (Pilgrim) on Jun 12, 2013 at 11:38 UTC | |
|
Re^5: Thoughts on replacing -> with .
by choroba (Cardinal) on Jun 12, 2013 at 11:38 UTC | |
by Corion (Patriarch) on Jun 12, 2013 at 11:47 UTC | |
by Grimy (Pilgrim) on Jun 13, 2013 at 18:21 UTC |