C.DeRykus wrote:
Clear as mud? Did you say 'Hell, no'...? Go then and meditate on autoincrement magic, grasshopper. When enlightenment comes, please report back and explain it to us too...
Actually, it is because string-comparison operators order strings differently than auto-increment.
String ordering by auto-increment: "a" "b" ... "y" "z" "aa" "ab" ... "yy" "yz" "za" "zb" ... String ordering by string-comparison operators: "a" "aa" "aaa" ... "y" "ya" "yaa" ... "yz" "yzz" "yzzz" ... "z" "za" "zaa" ... Notice that "z" appears in very different place in each. -- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. I like Perl; it's the only language where you can bless your thingy. Eliminate software piracy: use only FLOSS. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/