Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How do I extract text from an HTML page?

by ido50 (Scribe)
on Aug 03, 2003 at 17:53 UTC ( [id://280471]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open (FILE, "+<$path/finalgrades.html") or die "Can't open file: $!"; 
    +# where $path is the full path to the directory where the file reside
    +s.
    while (<FILE>) {
      if (m/^<b>[^<>]</b>, grade: (\d+)<br>$/) {
    ...
      }
    }
    close (FILE) or die "$!";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://280471]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-24 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found