The effects do vary in some cases, since ++ is smarter than it looks.
use strict; use warnings; my $index = 'AH'; $index++; print "++ gives $index\n"; $index += 1; print "+= gives $index\n";
Results in:
++ gives AI Argument "AI" isn't numeric in addition (+) at test.pl line 7. += gives 1
In reply to Re^3: 2 newby questions
by SuicideJunkie
in thread 2 newby questions
by Socrates440
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |