From: Ari Brown Date: 2007-04-22T23:40:32+09:00 Subject: Re: Array.sort problem On Apr 21, 2007, at 8:16 PM, Philip M. Gollucci wrote: >>> 4 while line = STDIN.gets > No, the assignment of line = STDIN.gets happens first which reads > up to a '\n' including it. While then loops while this value is true. Oh, so it's not checking whether line == STDIN.gets (immediately), but rather assigning STDIN.gets to line, and then checking whether that's true? Nice, I learned something! ---------------------------------------------------------------| ~Ari "I don't suffer from insanity. I enjoy every minute of it" --1337est man alive