Hi zogness,

So - what's your question? Does the code you have not work how you want it to - if so, what's going wrong?

I haven't used those modules recently myself, but I'm guessing that you need to fetch the page, *then* do the regexp matching and print the result. But maybe not. It's been a while.

Just from looking at it (haven't tried running it), it looks as though the code you have will try to fetch the result of running the regexp on each of your URL strings - which won't match, so you're asking it to fetch an empty list. Kinda guessing here though, really.

Best wishes,
andye


In reply to Re: HTTP::Request pipe through regex by andye
in thread HTTP::Request pipe through regex by zogness

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.