Stefan Dolfen schrieb:
> 
> I thought this is a perl mailinglist, not a unix ....
> I need a function in perl to find the latest file
> 
my @files_sorted_for_time_reversed = 
   sort {-M $b <=> -M $a} (<*.*>);

Now $files_sorted_for_time_reversed[0] contains the oldest file in the
directory.

Of course, there are ways to speed this snippet up,
but perhaps, that's all you need.

Greetings,
Andrea

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to