Well, for what ports to use (assuming you are talking about the TCP/UDP ports, not slang for "modules") then you might want to take a gander at your local services file. On a windows2k box it is typically in c:\winnt\system32\drivers\etc\services. In most *nix boxes, look for it as /etc/services. This file is a list of all defined ports (not all of them are necessarily in use, but these are the definitions that your box understands for those ports).  From this list, choose one that does not conflict with an existing service/program/daemon or whatnot.

Now, if on the other hand, you are looking for "modules" to use in your code, here are a few ideas that I recently used on a pet project of my own that is very similar.

  1. XML:Simple is a fine quick start for XML handling.  Watch it though, it does no DTD or validity testing for you.
  2. DBD::CSV and DBI to get the flat file into the program.
  3. And then for your connections, you could use any one of a number of programs - all depending on exactly what you want to do in more specific detail.  If you are going to stay within the standard protocols (like FTP and HTTP) you night want to look into LWP::Simple or Net::FTP for a one stop solution and easy use.  If you need more specific port control, and perhaps more customization of the protocol is needed (a home-brew security, compression, or other modification) you could start out with IO:socket or for a more daemon/server style service you may want to look into adding in POE.

Hope this helps either way. Cheers! ..and happy turkey day!

*G*


In reply to Re: Help with passing of ports and xml files... by growlf
in thread Help with passing of ports and xml files... by basicdez

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.