in reply to Sorting @ary by line length?

This ought to do it. $b and $a represent the actual elements of the array and we just call length() on them.
@sorted = sort { length($b) <=> length($a) } @unsorted;

Replies are listed 'Best First'.
Re: Re: Sorting @ary by line length?
by cshirky (Initiate) on May 25, 2001 at 00:44 UTC
    Mikhail Gorbachev, Lucille Ball, and I all thank you.

    -clay