in reply to Re: Re: Sort Array by length of Value
in thread Sort Array by length of Value

You don't need the reverse if you compare reversed values to begin with.
@b = sort { length $b <=> length $a } @a;
But then I also wonder if the order of the values _after_ sorting on length might be significant.   You might want to consider something like this:
@b = sort { length $b <=> length $a || $a cmp $b } @a;