in reply to Re: Sorting An Array of Versions
in thread Sorting An Array of Versions

"v$a" does not a "vector" make (it just makes "v".$a). You'd have to use something like eval "v$a" for that. Even that won't work in the face of common version number formats like "1.0a".

Note that "10" is showing as less than "9" in your results.

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
Re: (tye)Re2: Sorting An Array of Versions
by Dog and Pony (Priest) on Mar 12, 2002 at 19:23 UTC
    I noticed. I thought that was what was sought after, and stupidly did not crosscheck against what a direct cmp between the strings did - the same. I did realize my mistake... way too late. Better try to not be so triggerhappy in the future. :)
    You have moved into a dark place.
    It is pitch black. You are likely to be eaten by a grue.