in reply to Re: to find an index of a particular value in an array
in thread to find an index of a particular value in an array

But it doesn't give him the index and it will fail if the address is a substring of what is searched. Your code will (for example) return a line containing 201.1.1.102 when the user searched for 1.1.1.1

$\=~s;s*.*;q^|D9JYJ^^qq^\//\\\///^;ex;print