in reply to Re^2: search and extract lines which contain a word
in thread search and extract lines which contain a word

I would argue that my should be there either way, but that Perl only detects the error when use strict; is missing.

But that's debatable. Anyway, thanks. Fixed.