in reply to regexp "?" delimiter

The support for ?PATTERN? matching was removed in Perl 5.22.0, four years ago. You will need to use a matching operator and operand, like $_ =~ ?(^neuro.*)?. You will need to use a prefixed m, as choroba and Eily show.

In the perldelta, you can read what changed between each version of Perl 5.