<?xml version="1.0" encoding="windows-1252"?>
<node id="38529" title="Why does $string++ work the way it does?" created="2000-10-26 00:33:13" updated="2005-08-15 10:31:05">
<type id="1857">
categorized question</type>
<author id="11732">
QandAEditors</author>
<data>
<field name="doctext">
The following code produces some bizzare output.
Apparently, "a"++ = "b", and "z"++ = "aa". But if I ever try 
to convert $string to a number "$number = (int $string)" I get 0.

Anybody know why?

--snip!--
&lt;code&gt;
#!/usr/bin/perl

my $string = "a";

for( $i = 0; $i &lt; 64; $i++ ) {
    $string++;
    print "string = '$string'\n";
}
&lt;/code&gt;
--snip!--</field>
<field name="parent_node">
1826</field>
</data>
</node>
