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.
In reply to Re^3: sorting an array
by moritz
in thread sorting an array
by Selvakumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |