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.
In reply to Re^3: Sorting of numbers using arrays
by BrimBorium
in thread Sorting of numbers using arrays
by suneeldv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |