Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-26 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found