zakishah has asked for the wisdom of the Perl Monks concerning the following question:
I am new in perl and seeking for code to do my assignment.I want to compare ip adresses in a given traceroute result that is saved in txt file. i want to see if first and third line and 2nd and 4th line have same ip address or not? I shall be thankful for any help. here is txt file
1 10.0.0.106 (10.0.0.106) 0.495 ms 0.400 ms 0.356 ms 2 10.0.0.57 (10.0.0.57) 0.802 ms 0.714 ms 0.720 ms 3 10.0.0.50 (10.0.0.50) 1.130 ms 1.347 ms 1.301 ms 4 10.0.0.133 (10.0.0.133) 1.662 ms 1.694 ms 1.567 ms
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Comparing lines in txt.file
by Anonymous Monk on Aug 15, 2012 at 01:37 UTC | |
|
Re: Comparing lines in txt.file
by Kenosis (Priest) on Aug 15, 2012 at 02:05 UTC | |
by zakishah (Novice) on Aug 16, 2012 at 03:28 UTC | |
by aaron_baugher (Curate) on Aug 16, 2012 at 10:34 UTC | |
by zakishah (Novice) on Aug 17, 2012 at 03:20 UTC |