Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Version Sorting

by Samy_rio (Vicar)
on May 30, 2006 at 09:44 UTC ( #552441=note: print w/replies, xml ) Need Help??


in reply to Version Sorting

Hi perl_lover, Try this using module,

use strict; use warnings; use Sort::Versions; my @version = ("1.2.3","1.3.4","1.2.31","1.12","1.12.1","1.12.12") +; my @l = sort { versioncmp($a, $b) } @version; $,=", "; print @l,"\n"; __END__ 1.2.3, 1.2.31, 1.3.4, 1.12, 1.12.1, 1.12.12,

Regards,
Velusamy R.


eval"print uc\"\\c$_\""for split'','j)@,/6%@0%2,`e@3!-9v2)/@|6%,53!-9@2~j';

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://552441]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2018-07-21 00:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (442 votes). Check out past polls.

    Notices?