Y
Yash
Hi,
I would like to do something with every text file from a directory,
with the latest created file taken first.
What is the best way to do this. I am looking for something like:
for my $file ( <something> glob("/mydir/*.txt") )
{
#my code
}
The glob will create an array of filenames. How do I make sure the
list comes in time order , latest fist?
Thanks
I would like to do something with every text file from a directory,
with the latest created file taken first.
What is the best way to do this. I am looking for something like:
for my $file ( <something> glob("/mydir/*.txt") )
{
#my code
}
The glob will create an array of filenames. How do I make sure the
list comes in time order , latest fist?
Thanks