On 11-01-02 07:07 PM, Sheppy R wrote:
Sorry, forgot to reply-to-all again:(
$a *= 2;
Basically translates to this:
$a = $a * 2;
just like
$b += 1;
translates to:
$b = $b + 1;
This is true of almost every binary operator. Some of the weird ones:
$x ||= 0; # if $x is zero, undef, or an empty string, make it zero.
or
perl -E'$x=q(x);${x}x=7;say$x'
See `perldoc perlop` and search for /Assignment Operators/
--
Just my 0.00000002 million dollars worth,
Shawn
Confusion is the first step of understanding.
Programming is as much about organization and communication
as it is about coding.
The secret to great software: Fail early & often.
Eliminate software piracy: use only FLOSS.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/