I need to sort the above array by version. A simple ascii sort will incorrectly put version 1.0.9 after 1.0.10 etc. My best guess is that i need to sort using a usersub that will split the versions on /./ into $maj,$min,$rev and use the <=> operator to sort on each in turn. If anybody knows of any modules that will make this easier...or simply a good starting point I would be much oblidged. Thanks in advance, Jason@versions=qw(2.0.0 1.0.9 1.0.10 1.1.0 1.1.2);
In reply to Sorting An Array of Versions by insensate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |