It works like this:
  • You get an RSS address (like a commercial flier) that may be from a site (http://site.com/file.rss or http://site.com/cgi-bin/give.cgi/myRSS). Or from your local machine (you have the rss-file at some directory) file.rss.
  • Now you call this script to transform the XML to a simple html page (another form of XML, in fact). That page should contain some news. That is: a title of the site, an image, some lines that have a title of a news, some text explaining a little more, and a link to the site where you could read all the refered article.
  • This script has thought all the XML tag substitutions. Calling the RSS module instead of having only one way of showing the RSS content it uses certain hashes that contain the parsed elements. These are hashes inside hashes. (see perldoc) keeping the same structure of the XML tree (like folders and subdirectories). You have the content of all the RSS inside those variables. Just keep trying some until you see how they work.

    Hope it helps!


    In reply to Re: Need help understanding RSS script? by chanio
    in thread Need help understanding RSS script? by Anonymous Monk

    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.