On 12-03-20 05:39 AM, John W. Krahn wrote:
$x -= $y;
Is short for:
$x = $x - $y;
It is borrowed from the C programming language.
It would be more accurate to say it's equivalent to:
$x = $x - ( $y );
This becomes important when using the multiplicative operators:
$x *= $y + 1;
Which means:
$x = $x * ( $y + 1 );
--
Just my 0.00000002 million dollars worth,
Shawn
Programming is as much about organization and communication
as it is about coding.
"Show me your code and conceal your interfaces, and I shall continue
to be mystified. Show me your interfaces, and I won't usually need
your code; it'll be obvious."
-- Fred Brooks [updated]
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/