in reply to Re: File Search And Compare
in thread File Search And Compare
Except one small oops:   $i++   returns 0 on the first post-increment, so the   if (/pat/ && ...   fails the first time a line matches.
update My oops! That seems to be what you want, or something like it.   Your original seemed to look for duplicate _full_ lines.   But nevermind...
  p