So, I gather you did not write this code yourself. Do you know whether the person who did write this code would approve of having it posted publicly here? Was there any sort of copyright or license statement that came with this code? That sort of thing really matters.

As for the usage, it is conventional in describing command line syntax to use different brackets to indicate whether a given arg is mandatory or optional, and the intention is that the user should not include those brackets when actually typing a command line. So your command line should look like this:

theater_rss.pl 392
i.e. without the angle brackets. (In fact, putting angle brackets on a command line usually means something special to the shell. If you don't know what that means, figure out what sort of shell you are using, and see if you can find a manual for how to use that shell. Look especially for "redirection".)

As for step-by-step, it seems like the program code itself says pretty well what it is doing. After a successful run, you should be able to find relevant information in a file called "392.rss" in your current directory.

(Oddly, it looks like the script will accept multiple theater-ids, and if the command line were  theater_rss.pl 392 393, then there would appearently be a file called "392 393.rss" -- note the space between the numbers is part of the file name.)


In reply to Re: Stripping Movie Showtimes from a text file and inserting them into a mysql DB by graff
in thread Stripping Movie Showtimes from a text file and inserting them into a mysql DB by Mingus Iamblichus

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.