perlquestion
Smaug
Hi Monks, <BR>
I'm trying to get the newest file in a Win32 directory. I have done it as follows: <BR>
<code>
@list=(`dir *.log \/B \/OD`);
$count = scalar(@list);
$newest = $list[$#count];
print "$newest \n";
</code>
Although this works, I am sure that there is a better way of doing this?!?<BR>
Also, is there a module I should know about for these sorts of things?? <BR>
<BR>
Thanks, <BR>
Smaug.