Re: HTML parsing

2005-03-30 Thread FreeFall
I am new to Perl too and have a little try: #!/usr/bin/perl use warnings; use strict; my @data; while (<>) { chomp; push @data,$_ if !/^\ wrote: > Hi all, > > I'm brand new to Perl, and have just a little programming background. I was > tasked with parsing a set of .html

RE: HTML parsing

2005-03-29 Thread Charles K. Clarkson
Offer Kaye wrote: : while (defined(my $token = $parser->get_tag("font"))) { :my $data = $parser->get_text; #get the data :$data =~ s/^\s+//; #get rid of extra whitespace the :$data =~ s/\s+$//; # the beginning and end :push @all_data,$data; # save the d

Re: HTML parsing

2005-03-29 Thread Offer Kaye
On Mon, 28 Mar 2005 15:49:38 -0500, Daniel Smith wrote: > Hi all, > > I'm brand new to Perl, and have just a little programming background. I was > tasked with parsing > a set of .html files in order to extract the data contained within some > terribly formatted tables. > Here is a sample of

Re: HTML parsing

2005-03-29 Thread Felix Geerinckx
On 28/03/2005, Daniel Smith wrote: > I was tasked with parsing a set of .html files in order to extract > the data contained within some terribly formatted tables. [...] > Can anyone shed some light? I used HTML::Treebuilder on a similar project once: #! /usr/bin/perl use warnings;