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.
In reply to Re: regexp "?" delimiter
by Corion
in thread regexp "?" delimiter
by cmic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |