Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Version Sorting

by Samy_rio (Vicar)
on May 30, 2006 at 09:44 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://552441]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-25 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found