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
In reply to Comparing lines in txt.file by zakishah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |