$var = "aaa"; ++$var; # or: $var++ print "Var is: $var\n"; __END__ Var is: aab
Ah, the magic of Perl.
Update: D'oh. davorg++ for speed. ;-)
Update2: Oh, and just to make sure that it's clear: ($var = "az")++; $var == "ba";
bbfu
Seasons don't fear The Reaper.
Nor do the wind, the sun, and the rain.
We can be like they are.
In reply to Re: Incrementing characters
by bbfu
in thread Incrementing characters
by legLess
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |