in reply to Re^2: sorting an array
in thread sorting an array
even using sort directly works too (i tried it)
How?
use strict; use warnings; my @array=("ch1","ch11","ch2","ch5","ch55","ch16"); print join(' ', sort @array), "\n"; __END__ ch1 ch11 ch16 ch2 ch5 ch55
That's not the same order as Selvakumar wants.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: sorting an array
by hnd (Scribe) on Jul 10, 2009 at 11:15 UTC | |
by moritz (Cardinal) on Jul 10, 2009 at 11:26 UTC | |
by hnd (Scribe) on Jul 10, 2009 at 11:41 UTC |