Re: Sorting files by date (in first line)

2002-07-08 Thread Shannon Murdoch
Solved 10 minutes later by using: @list = sort { $filelisthash{$b} <=> $filelisthash{$a} } keys %filelisthash; Instead of: foreach $file_num (sort { $a cmp $b } keys %filelisthash) { push(@list,$file_num); } Thanks anyway!! Hope someone finds this helpful... On 8/7/02 9:17 PM, in article

Sorting files by date (in first line)

2002-07-08 Thread Shannon Murdoch
Hi all, I have a list of 40 or so files that need to be sorted into an array by article date (found in first line of each file in the form DD-MM-). I can't figure out how to go about it successfully... Can anyone help me out please?? Thanks in advance! Current method is as follows: use T