Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: is $i=+3 valid?by dsheroh (Monsignor) |
on Jul 05, 2013 at 07:28 UTC ( [id://1042631]=note: print w/replies, xml ) | Need Help?? |
Yes, $i=+3 is valid, but it doesn't do what you intend. It sets the value of $i to positive three (+3).
As earlier answers suggested, you would use $i += 3 to add 3 to the value of $i.
In Section
Seekers of Perl Wisdom
|
|