"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")In reply to (tye)Re2: Sorting An Array of Versions
by tye
in thread Sorting An Array of Versions
by insensate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |