in reply to Regex matching part of one hash key to another

KevinNC:

You should be able to just pull out the part of the OUI.TXT file that contain the lines used by your input data. Then we can easily test it.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: Regex matching part of one hash key to another

Replies are listed 'Best First'.
Re^2: Regex matching part of one hash key to another
by oko1 (Deacon) on Jan 07, 2011 at 00:36 UTC

    OUI.txt isn't the problem; it's available here. It's his other data, the log file (?) that he's parsing.

    -- 
    Education is not the filling of a pail, but the lighting of a fire.
     -- W. B. Yeats

      Here is a sample of the data im trying to search on. The IPs and MACs were changed from what the actual data to be able to continue working here. I have been at perl for approximately 1 month off and on and haven't written any programs since school 18 years ago so I know my code is quite rough around the edges. I used the Learning Perl "Llama" book from O'Reilly and most of this is taken from the examples and adapted to this program. This is something I learned to help with an inventory project and I hope to get better and find more uses for perl as I am hooked on its power, I know Ineed to learn much much more than I already do and I'm hoping I didn't bite off more than I can chew with this project. Thanks for the replies :)

      Internet 10.10.10.1 - 000b.462d.2846 ARPA FastEthernet0

      Internet 10.10.10.2 1 0013.2004.acde ARPA FastEthernet0

      Internet 10.10.10.3 7 0800.4ec8.94ac ARPA FastEthernet0