Hey I asked a question the other day and got that working... Now I am finding another section I need to parse out of a page I am grabing via LWP::Simple. I have the page set to a variable $webpage Now I need to drop this section of code from that variable:
<!-- Begin MRTG Block --> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0> <TR> <TD WIDTH=63><A HREF="http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/"><IMG BORDER=0 SRC="http://hamburg.harbinger.net/mrtg/cen/mrtg-l.png" WI +DTH=63 HEIGHT=25 ALT="MRTG"></A></TD> <TD WIDTH=25><A HREF="http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/"><IMG BORDER=0 SRC="http://hamburg.harbinger.net/mrtg/cen/mrtg-m.png" WI +DTH=25 HEIGHT=25 ALT=""></A></TD> <TD WIDTH=388><A HREF="http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/"><IMG BORDER=0 SRC="http://hamburg.harbinger.net/mrtg/cen/mrtg-r.png" WI +DTH=388 HEIGHT=25 ALT="Multi Router Traffic Grapher"></A></TD> </TR> </TABLE> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0> <TR VALIGN=top> <TD WIDTH=88 ALIGN=RIGHT><FONT FACE="Arial,Helvetica" SIZE=2> version 2.9.6</FONT></TD> <TD WIDTH=388 ALIGN=RIGHT><FONT FACE="Arial,Helvetica" SIZE=2> <A HREF="http://ee-staff.ethz.ch/~oetiker/">Tobias Oetiker</A> <A HREF="mailto:oetiker@ee.ethz.ch">&lt;oetiker@ee.ethz.ch&gt;</A> and &nbsp; <A HREF="http://www.bungi.com/">Dave&nbsp;Rand</A>&nbsp; <A HREF="mailto:dlr@bungi.com">&lt;dlr@bungi.com&gt;</A></FONT> </TD> </TR> </TABLE> <!-- End MRTG Block -->
How would you suggest I do this?? I am trying to just get rid of that part so I will be replacing it with nothing.

In reply to Grabing a Page and Need to Parse it.. by LostS

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.