in reply to Sorting an array of strings by number
So, all you should need is the simpleprint('1.01:dfsfda'+'1.34:kjlkljkj',"\n"); # prints 2.35\n
@sorted = sort { $a <=> $b } @data;
- Ant
- Some of my best work - Fish Dinner
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Sorting an array of strings by number
by tye (Sage) on Oct 01, 2001 at 19:37 UTC | |
by Fletch (Bishop) on Oct 03, 2001 at 21:35 UTC | |
by Anonymous Monk on Oct 16, 2001 at 20:08 UTC |