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

No need for split or join in that case...

map { scalar reverse } @values

Replies are listed 'Best First'.
Re^3: Sorting of numbers using arrays
by BrimBorium (Friar) on Sep 21, 2010 at 19:52 UTC
    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.