in reply to Re^2: ternary conditional help
in thread ternary conditional help
Hi opaltoot,
See Assignment Operators:
... the scalar assignment operator produces a valid lvalue. Modifying an assignment is equivalent to doing the assignment and then modifying the variable that was assigned to. This is useful for modifying a copy of something, like this:
($tmp = $global) =~ tr/13579/24680/;... Likewise,
($x += 2) *= 3;is equivalent to
$x += 2; $x *= 3;
Hope this helps,
-- Hauke D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: ternary conditional help
by opaltoot (Novice) on Nov 28, 2016 at 20:49 UTC |