etch  ] [  etch-m68k  ] [  lenny  ] [  squeeze  ] [  sid  ]
[ Source: libsort-versions-perl  ]

Package: libsort-versions-perl (1.5-3)

Perl module for sorting of revision (and similar) numbers

This is the CPAN Perl module Sort::Versions.

This module allows easy sorting (via comparisons) of mixed text and numeric strings, similar to the complex "version numbers" that many revision control packages and shared library systems use. For an explanation of the algorithm, it's easiest to look at these examples:

 1.1   <  1.2
 1.1a  <  1.2
 1.1   <  1.1.1
 1.1   <  1.1a
 1.1.a <  1.1a
 1     <  a
 a     <  b
 1     <  2

 (special handling for leading zeros)
 0002  <  1
 1.06  <  1.5

 (a hyphen binds looser than a period)
 1-1 < 1-2
 1-2 < 1.2

 Homepage: http://search.cpan.org/~edavis/Sort-Versions/

Tags: Software Development: Perl Development, Libraries, Implemented in: Perl, Role: Shared Library

Other Packages Related to libsort-versions-perl

  • depends
  • recommends
  • suggests
  • dep: perl (>= 5.6.0-16)
    Larry Wall's Practical Extraction and Report Language

Download libsort-versions-perl

Download for all available architectures
Architecture Package Size Installed Size Files
all 9.9 kB28 kB [list of files]