You need to first break this problem into steps:
- Get the data: For this you probably want to look at LWP::Simple and then use loops and regex to parse each page.
- Store it: Use DBI for any database you like (under unix mysql is a decent and free system).
- Receive querys: CGI.pm is the way :)
- Look at the data: Go back to your database in step 2, you may need to learn some more SQL if you don't know it.
- Display results: Something like HTML::Template would be nice, but there are many other solutions for this step.
See what you can work out for those and then maybe come asking for furthur help on specific items. | [reply] |
Yes, a few ideas:and come back with real questions... So far it seems you have the right idea, but no code will get you nowhere around here. You need to show some effort as well.
#!/home/bbq/bin/perl
# Trust no1!
| [reply] |
Doesn't the CGI for the teamscores get its results from somewhere?
I would think it would be easier (and more accurate) to get the data from the source, rather than having to parse an interpretation of the data.
On the other hand, I know that that isn't always possible, in which case I would follow repson's approach.
--Glenn
| [reply] |
No, Glenn, it doesnt. Basically the team pages are the src. They retrieve the score from the player info, something i don't have access too.
Thanks, repson, for ur response. I will look further into those things and let ya know...
BBQ: I didnt want to have code, I wanted a discussion of ideas, so i can write up my own code, not steal other ppl's. I pretty much wanted to know what i had to learn before i could advance any further. Repson did this.
| [reply] |