I have a "Subscriber Referral Script" that needs an added functionality. Someone can link to my site through a cgi script with their email address as referrer. When someone they refer joins my newsletter they are recorded together in a log-file. What I want is to show the top five email addresses with the most instances as they occur in the log-file. This is so that I don't have to rely on the people who referred the most email addresses to step forward. I can easily identify them myself.
## Deliverables
Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased. I need the the "add-on" to do and show the following... Top 5 email addresses with the most instances. It should search the '[login to view URL]' for this info. Once this information is found in the '[login to view URL]' it should display in the following way... (Note: I've attached the script and the '[login to view URL]' only appears after the first person submits an email address through the [login to view URL] form) winner(#)[login to view URL] 1000 second(#)[login to view URL] 725 third(#)[login to view URL] 550 fourth(#)[login to view URL] 213 fifth(#)[login to view URL] 118 The email addresses should show up as active links that I can click on an mail. If possible the results should be displayed inside of a table (1 row, 1 column) with no border and centered on the screen. Would it also be possible to show some indicator that the script is working while it's looking for the results? What I mean is that when I tell the script to find this information can it show something like "The Script Is Working..." until the results are shown? If this can be done without a problem then could ten results be shown instead of five? (Note: Would this put a large strain on a server? If so, would an executable on my computer using the log-file which I could download to my computer be a better solution? I'm expecting the log-file to have 10,000 or more email addresses when the top 5 or 10 instances are searched for.) I've attached the completed version of the script so that you can see exactly how it works. Thanks.
## Platform
Perl/Cgi for UNIX servers