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


In reply to Re: html Parser by talexb
in thread html Parser by Perlize

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.