Re: HTML::Parser

2003-08-14 Thread Rhys Hopkins
Joel Bernstein wrote: On Mon, Aug 04, 2003 at 05:08:39PM +0100, Rhys Hopkins wrote: Whilst "Data Munging with Perl" is, of course, a fine book, in With a fine title. Following the recent discussion on the pronunciation of regex / regexp, this is something that has intrigued me for some time, mung

Re: HTML::Parser

2003-08-04 Thread Dave Cross
On Mon, Aug 04, 2003 at 05:08:39PM +0100, Rhys Hopkins ([EMAIL PROTECTED]) wrote: > > > > Whilst "Data Munging with Perl" is, of course, a fine book, in > > With a fine title. > > Following the recent discussion on the pronunciation of > regex / regexp, this is something that has intrigued me for

Re: HTML::Parser

2003-08-04 Thread Elaine -HFB- Ashton
Rhys Hopkins [EMAIL PROTECTED] quoth: *> *>Put another way do you mung, or munge the data ? mung is a fun word in American English :) The dictionary of american regional english defines it as mang or mung 1. 1884 Amer. Philol. Accos. Trans. for 1183 14.51 WV, Man means in West. Virginia the 'sl

Re: HTML::Parser

2003-08-04 Thread Simon Wilcox
On Mon, 4 Aug 2003, Rhys Hopkins wrote: > Following the recent discussion on the pronunciation of > regex / regexp, this is something that has intrigued me for some time, > > mung - ing as in mung beans, or > munj - ing as in sponge ? > > Put another way do you mung, or munge the data ? Surel

Re: HTML::Parser

2003-08-04 Thread Joel Bernstein
On Mon, Aug 04, 2003 at 05:08:39PM +0100, Rhys Hopkins wrote: > > > > Whilst "Data Munging with Perl" is, of course, a fine book, in > > With a fine title. > > Following the recent discussion on the pronunciation of > regex / regexp, this is something that has intrigued me for some time, > > mun

Re: HTML::Parser

2003-08-04 Thread Nigel Rantor
Put another way do you mung, or munge the data ? Ah, at last a question I care about. It is of course mung.* N * For all values of mung where mung is mung** ** Oh, thats pronounced mung by the way*** *** Oh, okay, as in munge[0][1] [0] Hmm, different footnote syntax than I normally use. [

Re: HTML::Parser

2003-08-04 Thread Rhys Hopkins
> > Whilst "Data Munging with Perl" is, of course, a fine book, in With a fine title. Following the recent discussion on the pronunciation of regex / regexp, this is something that has intrigued me for some time, mung - ing as in mung beans, or munj - ing as in sponge ? Put another way do you mu

RE: HTML::Parser

2003-08-04 Thread Andy Williams \(IMAP HILLWAY\)
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Dave Cross > Sent: 04 August 2003 16:06 > To: [EMAIL PROTECTED] > Subject: Re: HTML::Parser > > > > Whilst "Data Munging with Perl" is, of course, a fine bo

Re: HTML::Parser

2003-08-04 Thread Dave Cross
From: "Andy Williams \(IMAP HILLWAY\)" <[EMAIL PROTECTED]> Date: 8/4/03 2:49:12 PM >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of Dave Cross >> Sent: 04 August 2003 14:34 >> To: [EMAIL PROT

Re: HTML::Parser

2003-08-04 Thread Andy Lester
At 2:16 PM +0100 8/4/03, Andy Williams \(IMAP HILLWAY\) wrote: Hi, I need to parse an HTML file [0] and pull out all the form elements and put them into a data structure. What I can't seem to do is when I have found a tag is then parse the associated tags! Can I ask what you'll do with all thi

RE: HTML::Parser

2003-08-04 Thread Andy Williams \(IMAP HILLWAY\)
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Dave Cross > Sent: 04 August 2003 14:34 > To: [EMAIL PROTECTED] > Subject: Re: HTML::Parser > > And secondly, if you're trying to build a tree based on the > HTML

Re: HTML::Parser

2003-08-04 Thread Sam Vilain
I need to parse an HTML file [0] and pull out all the form elements and put them into a data structure. What I can't seem to do is when I have found a tag is then parse the associated tags! If you're getting valid xhtml: use XML::Sablotron::DOM; my $situa = new XML::Sablotron::Situation(

RE: HTML::Parser

2003-08-04 Thread Andy Williams \(IMAP HILLWAY\)
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Dave Cross > Sent: 04 August 2003 14:34 > To: [EMAIL PROTECTED] > Subject: Re: HTML::Parser > > Well firstly, you're using the very old (and nasty) > HTML::Parse

Re: HTML::Parser

2003-08-04 Thread Shevek
On Mon, 4 Aug 2003, Andy Williams (IMAP HILLWAY) wrote: > I need to parse an HTML file [0] and pull out all the form elements and > put them into a data structure. What I can't seem to do is when I have > found a tag is then parse the associated tags! Try HTML::PullParser. The invocation system

Re: HTML::Parser

2003-08-04 Thread Robin Berjon
Andy Williams (IMAP HILLWAY) wrote: I need to parse an HTML file [0] and pull out all the form elements and put them into a data structure. What I can't seem to do is when I have found a tag is then parse the associated tags! When you see the start select, you set a flag to say you're in a select

Re: HTML::Parser

2003-08-04 Thread Dave Cross
s then > parse the associated tags! > > So far I have the following... > > > use strict; > use Data::Dumper; > while () { >$p->parse($_); > } > $p->eof; > > print Dumper($p->htmltree); > > > package FormParser; > use base "HTML::Pa

HTML::Parser

2003-08-04 Thread Andy Williams \(IMAP HILLWAY\)
_); } $p->eof; print Dumper($p->htmltree); package FormParser; use base "HTML::Parser"; my $HTMLTREE = {}; sub start { my ($self, $tag, $attr, $attrseq, $origtext) = @_; if ($tag =~ /^form|input|texarea$/) { my $name = $attr->{name};