Radhika Sambamurti wrote: > Hi, > I have written a small script that is supposed to tell me the oldest > file in my directory (as per ctime). I have read the various times > the various files were created, into an array called times. I have > then sorted this array - @sorted_times. when i do ls -l i get the > following: >
[snip] ls is showing you mtime, not ctime. You should be using mtime. ctime is inode change time, NOT "create" time. Unix does not have a "create" time. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>