That means: $a = $a * 2

i.e take the existing value of $a, multiply it with 2 and reassign it to $a

Cheers,
Parag




On Sun, Jan 2, 2011 at 4:00 PM, J. S. John <phillyj...@gmail.com> wrote:
> Hi all, I'm new to Perl. The only other language I know is
> Matlab/Octave and I'm still working my way around Linux. I am using
> Shlomi Fish's tutorial on perl until I get the llama book. I'm stuck
> on section [4.1. "+=" and friends ] [1]. I don't really understand the
> part "$a *= 2; $b += 1;" What is the *= mean?
>
> [1] 
> http://www.shlomifish.org/lecture/Perl/Newbies/lecture1/variables/plus-equal.html
>
> Thanks,
> JJ
>
> --
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/
>
>
>

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to