> Hi,
> 
> Does anybody know if there is an option in readdir to return the file list
> in the order of their creation time?  Or know of a way to do that?  Been
> reading the perldoc w/o much luck.  Thanks!
> 

Doubtful, but it should be trivial using readdir in a list context and
using 'sort' with 'stat'.  

perldoc -f sort
perldoc -f stat
perldoc -q sort

The bigger question is "are you sure you want to?" the "creation time"
on most OSes doesn't actually mean anything or exist at all.  There is
the 'ctime' which is an inode change time which means even less to most
Perl programs.  Are you positive your OS supports a creation time?  What
are you really trying to do?

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to