Hi I am new to Perl, I am just doing my first Perl unit in uni. I am having trouble getting my head around a question I have to do, I am sure there is a simple way. We are making a basic command line web browser. We have a txt file in which we search through, get the words from and match them against the "Title" header. It is a basically a simple filter, if one of the words like 'porn' is found then the user is displayed a message and the script closes. Now what I am having trouble with is an extension of that. We have to have multiple files and within the files they can have urls to the other filter files. So the script has to go through the first one supplied, then when it comes accross a url it has to check that the url is valid as we did earlier in the script, then check the words within the file stored at the url against the Title header as well. I just can't get my head around how to check every single url inside the txt files. So does anyone have any suggestions on how to approach this? Thanks.

In reply to Searching through links by methosb

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.