Canuckkev
March 28th, 2001, 00:31
Okay, my top 10 ranking list script is almost done. I have learned a lot of Perl in the last few days as I have been working on this project. The final task: Create and HTML listing page of all the ratings stored in text files ranked from 1 to 10. So far I have been able to arrange all the data I need into one large %hash . But now I don't know how to organize it so the most highly ranked item is at the top, so when I run a foreach loop, it will process all the results in order.
Have I lost you yet? Hope not. Basically, I need to be able to re-organize a hash so the entries are listed in order by one variable stored in an array in an entry in the hash. (Sense I make no) So I need to be able to rank it from this value: $file_data{'$file'}[2], then relist all the
entries in order from this one value. BTW, this value is a numeric number in the format 9.99.
Okay, I doubt any of you guys(and gals) have understood this much, so please ask questions(that ism if you want to help me) and I will answer them. Thank you very much to anyone who responds.
[Edited by Canuckkev on 03-28-2001 at 01:42 AM]
Have I lost you yet? Hope not. Basically, I need to be able to re-organize a hash so the entries are listed in order by one variable stored in an array in an entry in the hash. (Sense I make no) So I need to be able to rank it from this value: $file_data{'$file'}[2], then relist all the
entries in order from this one value. BTW, this value is a numeric number in the format 9.99.
Okay, I doubt any of you guys(and gals) have understood this much, so please ask questions(that ism if you want to help me) and I will answer them. Thank you very much to anyone who responds.
[Edited by Canuckkev on 03-28-2001 at 01:42 AM]