in reply to Re: Sorting numbers
in thread Sorting numbers

Please don't use exists on array elements. It doesn't work on old versions of Perl and I hear that it will stop working again (thankfully) on some future version of Perl. You want defined instead. The difference between defined and exists makes sense for hash elements (tells you whether the key is present). The difference between defined and exists for array elements is an obscure memory allocation detail that you should never care about and can easily get wrong.

                - tye