Possible Duplicate:
Autoincrementing letters in Perl
I am trying to understand Perl's pre-increment operator. For every different variable, I find the pre-increment operator behavior strange in Perl.
Example :
#!/usr/bin/perl
$a = "bz";
print ++$a, "\n";
RESULT: ca
#!/usr/bin/perl
$a = "9z";
print ++$a, "\n";
RESULT: 10
Shouldn't the result be 10a?
#!/usr/bin/perl
$a = "bxz";
print ++$a, "\n";
RESULT: bya
Shouldn't the result be cya?