Re: reading directories
From: Web Surfer (raisin_at_delete-this-trash.mts.net)
Date: 01/14/04
- Next message: Marc Bissonnette: "Re: matching only white space"
- Previous message: Jim Gibson: "Re: parsing Nero .nri file -- possible character set issues (perl newbie)"
- In reply to: Robin: "reading directories"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 14 Jan 2004 13:23:51 -0600
[This followup was posted to comp.lang.perl.misc]
>, robin@csf.edu says...
> When you readdir will it sort the files of into the array ie:
> @a = readdir (DIR);
> by the file modified or by the name?
>
> Thanks.
>
> --
> peace,
> Robin
> --------------
> robin@csf.edu
> Please CC a copy of your message to me.
> --------------
The output from readdir() is not roted.
You can sort it by doing something like this :
@a = sort readdir (DIR);
- Next message: Marc Bissonnette: "Re: matching only white space"
- Previous message: Jim Gibson: "Re: parsing Nero .nri file -- possible character set issues (perl newbie)"
- In reply to: Robin: "reading directories"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|