in reply to Re^2: "search pattern not terminated " error
in thread "search pattern not terminated " error

Specifically, Perl thinks you have opened a special 'match-only-once' regex (or else maybe a weird  ?: ternary operator).
See ?PATTERN? in perlop.