Showing posts with label Finding oldest file in directory. Show all posts
Showing posts with label Finding oldest file in directory. Show all posts
Friday, January 4, 2008
Finding oldest file in directory
my $xml_file = (reverse sort{(stat $a)[10] cmp (stat $b)[10]} glob "$dir_name/*.*")[0];
Subscribe to:
Posts (Atom)