The stupid question is the question not asked | |
PerlMonks |
Re: is $i=+3 valid?by sahil2588 (Novice) |
on Jul 05, 2013 at 07:42 UTC ( [id://1042640]=note: print w/replies, xml ) | Need Help?? |
I think you are trying to increment the value of $i here.
For that you should use:
$i+=3
This will add 3 to your current $i value.
$i=+3 is just like assigning "+3" i.e. positive 3 value to $i.
In Section
Seekers of Perl Wisdom
|
|