in reply to Sorting on Section Numbers
#!/usr/local/bin/perl use strict; use Sort::Versions; my @sections = qw(2.1.7 2.2 3.4a 2.13 1 2); @sections = sort versions @sections; print "@sections\n"; # prints "1 2 2.1.7 2.2 2.13 3.4a"Hope this helps! Leon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Sorting on Section Numbers
by tye (Sage) on Jul 28, 2000 at 18:59 UTC |