It warns in 5.17.x, and the parsing and metacharcter status is subject
to change in future versions of perl.
like(
$@,
- qr{^error inflating attribute 'barble' for package 'Fooble': \$TYPE_MAP\{CODE\(\w+?\)\} did not return a valid type constraint},
+ qr/^error inflating attribute 'barble' for package 'Fooble': \$TYPE_MAP\{CODE\(\w+?\)\} did not return a valid type constraint/,
'error message for incorrect type constraint inflation',
);