in reply to Ordered Comparison of Generalized Version Strings.


There is also the Sort::Versions module.

John.
--

  • Comment on Re: Ordered Comparison of Generalized Version Strings.

Replies are listed 'Best First'.
(tye)Re4: Ordered Comparison of Generalized Version Strings.
by tye (Sage) on Jul 26, 2001 at 19:58 UTC

    Unfortunately, this module fails for some simple cases:

    use Sort::Versions; print join(" ",sort versions qw(1.2a 1.10a)),"\n";
    produces     1.10a 1.2a

    Note that this matches the behavior described in the module's documentation, but I think it isn't what most people would want.

    I've been considering patching the module to make it more useful...

    [Mostly a repeat of Re: Re: Sorting on Section Numbers (to save clicks).]

            - tye (but my friends call me "Tye")