Perlize has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: html Parser
by talexb (Chancellor) on Dec 17, 2005 at 02:15 UTC

    Cute .. actually, the name for the Perl Archive is CPAN -- C-SPAN is something different. Very different.

    Now, I'm not sure if you're dealing with HTML::SimpleParse, but if you are, it looks like the 'execute' method will do the job for you -- loop through the page, printing out the nodes, and see if the 'td' that you want really is the sixth one, then you are away to the races.

    Now, you'll note that I didn't give you any Perl advice here -- I just told you to look at the documentation. Please do that before you ask your next question -- your low reputation is explained by essentially barging in and saying 'How do I do this!', rather than more calmly explaining your problem, listing all the things that you tried, providing some sample code that demonstrates the problem, and describing exactly what your're stuck on.

    Hang on, though .. perl is worth the learning curve.

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds