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
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
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
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
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
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.
[
>
> 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
> -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
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
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
> -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
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(
> -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
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
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
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
_);
}
$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};
17 matches
Mail list logo