perlquestion
bingalee
<p> Im trying to figure this out but I dont get it. Here's the code </p>
<code>
#!/usr/bin/perl
use warnings;
$a = "A9"; print ++$a, "\n";
$a = "bz"; print ++$a, "\n";
$a = "Zz"; print ++$a, "\n";
$a = "z9"; print ++$a, "\n";
$a = "9z"; print ++$a, "\n";
</code>
<p>OUTPUT</P>
<code>
>perl auto2.plx
B0
ca
AAa
aa0
10
>
</code>
<p> I get the first two outputs, A turns to B and 9 to 0.</p>
<p> But how does "Zz" become "AAa", "z9" become "aa0" and so on..
*confused*
</p>