jamiel has asked for the wisdom of the Perl Monks concerning the following question:
imagine that I have a document named finalgrades.html located at http://somedomain.com/finalgrades.html and it contains the following text:
<html> <head> <title></title> </head> <body> <b>Guy 1</b>, grade: 100<br> <b>Guy 2</b>, grade: 70<br> <b>Guy 3</b>, grade: 98<br> </body> </html>
I want a perl script ( to make a CGI ) which takes the values after "grade:" and before "<b>" for the line containing a name that I coose (for example "Guy 1"), and prints it to the screen when running it as a CGI on my webpage, something like this:
<html> <head> <title>CONGRATULATIONS TO THE PARTICIPANT Guy 1</title> </head> <body> <h1>Guy 1</h1> Has just got a "100" as a grade for this Seminar. Congratulations!!!<br> </body> </html>
edited: Sun Aug 3 15:19:23 2003 by jeffa - formatting, linkafied link edited: Mon Mar 13 10:25:23 2006 by jamiel - formatting, spelling, etc...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do I extract text from an HTML page?
by bobn (Chaplain) on Aug 03, 2003 at 05:22 UTC | |
Re: How do I extract text from an HTML page?
by CountZero (Bishop) on Aug 03, 2003 at 16:06 UTC | |
Re: How do I extract text from an HTML page?
by ido50 (Scribe) on Aug 03, 2003 at 17:53 UTC | |
by ido50 (Scribe) on Aug 03, 2003 at 17:57 UTC | |
by ido50 (Scribe) on Aug 03, 2003 at 18:00 UTC | |
by jeffa (Bishop) on Aug 03, 2003 at 19:02 UTC |
Back to
Seekers of Perl Wisdom