ashaman has asked for the wisdom of the Perl Monks concerning the following question:

when i do a readdir and put it all into a list, it lists everything fairly randomly . . . but you know that . . . my question is, how the hell do i sort the list? alphabetically, specifically, but sorting in any way would be equally useful

Replies are listed 'Best First'.
Re: alphabetically ordering a list
by rchiav (Deacon) on Apr 07, 2001 at 08:14 UTC
    What you're looking for is sort. I'd post an example here, but it would just be redundant. There's ample examples at the link.
    Rich
Re: alphabetically ordering a list
by Beatnik (Parson) on Apr 07, 2001 at 12:19 UTC
    check this too...
    Update:Fixed broken link (bad mirror) - thx Corion

    Greetz
    Beatnik
    ... Quidquid perl dictum sit, altum viditur.