Thanks everybody for you help. That code is exactly the kind of thing i was looking for. To Netwallah, it also sounds like the task for which it was used is similar to what i intend to do.This is the first time the task has been performed. Basically i am going to collect the arp table off our router and hopefully the switch forwarding tables off our hp switches. the output of both things were then going to be inserted into a databse (i have a script to put the output into an sql database) which would be periodically updated so as to give an idea of what is on our network at any given time. The database would have a record for each address with fields such as the related mac or ip address, the port that the mac address relates to( i forsee this could be difficult) and when it last appeared on the network. so to get to the point, how difficult would it be to change Netwallah's script to do all these things? I would also be interested in seeing what the DBinterface module does as this may be better then adding more code to put the resulting output into an sql database.Any ideas netwallah? sorry for the long winded post but i am very new to this perl malarky and am still trying to find my feet.Once again thanks for all the replies so far.

In reply to Re^2: using perl for arp collection by Anonymous Monk
in thread using perl for arp collection 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.