in reply to Re^2: Sorting of numbers using arrays
in thread Sorting of numbers using arrays

use strict; use warnings; my @values = qw(1452 6351 5892); @values = map { scalar reverse } @values; print "@values ";

prints 2541 1536 2985, so it's just reverting but not sorting the strings. I just wanted to point ot that you can use sort.