Consider the following form submission data (partial data): match date: September 29 map: Heutau
Match 1 USN - 341 (winner) 1st PD - 204 Match 2 GD - 404 (winner) RMPZ|SS - 136 Match 3 ITF - 292 RsR - 296 (winner) which is sent through a perl script and creates the following ascii text file (again partial data): September,29,Heutau,USN,341,1st PD,204,GD,404,RMPZ|SS,136,ITF,292,RsR,296 October,6,Caen2,GD,295,1st PD,367,ITF,300,USN,454,VP,399,RMPZ,250 October,13,Schwetz,ITF,800,GD,50,VP,1100,1st PD,150,RsR,0,USN,1400 October,20,Ramelle,VP,300,ITF,280,RsR,275,GD,280,RMPZ|SS,242,1st PD,180 What I want to do is take that data file and generate a new data file that looks like this: (clan, wins, losses, PF, PA) USN,3,0,2195,1200 VP,3,0,1950,350 etc... The results don't have to be written in order of wins. It can be written in any order (I was able to do a sort routine with help from some people on the list yesterday). Then I can sort the data and print it in order of wins on a webpage. I tried a couple ways to sort the first set of data with a series of while loops doing if/elsif/else checks and cummulating results but it wasn't working right. Completing this task is the last hurdle I have on a project I've been putting together for some friends. If anyone is wondering what this is all about (or if it would give clarity to the problem) you can see what I've been doing with perl here: www.usnclan.com/league There is a backend administrator's page which allows the league admin to dynamically track league results and update the front page. A series of perl scripts does all the grunt work behind the scened. I've done all the coding myself with some key help of the gracious people on this list. If someone can help me get over this remaining hurdle I'd be extremely grateful. Steve Steveo (aka 'Haiku') www.linuxhaiku.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]