mattwortho has asked for the wisdom of the Perl Monks concerning the following question:
Hello, I was wondering if someone could help me with the following. I have a text file with the following sort of lines: 192.168.0.1 | some text. I have an array containing the ip addresses and would like to look up the text for each one. What is the best way to search for them? It seems a little crazy to go through all the file lines each time I want to find the corresponding text for an ip. Thanks in advance and sorry for the long winded question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: File Searching
by kyle (Abbot) on Sep 13, 2007 at 15:33 UTC | |
by blazar (Canon) on Sep 14, 2007 at 13:04 UTC | |
Re: File Searching
by naikonta (Curate) on Sep 13, 2007 at 15:34 UTC | |
by Anno (Deacon) on Sep 13, 2007 at 18:22 UTC | |
by mattwortho (Acolyte) on Sep 13, 2007 at 15:43 UTC | |
Re: File Searching
by GrandFather (Saint) on Sep 13, 2007 at 20:57 UTC | |
Re: File Searching
by sgt (Deacon) on Sep 13, 2007 at 16:00 UTC |
Back to
Seekers of Perl Wisdom