As others have said, perlcritic is opinionated (and intentionally so). Use the parts you agree with and ignore the parts you don't.
I struggle to see what benefit adding the /x flag would be to such a simple regular expression
There isn't any, so ignore it. FWIW, I literally never use /x as it causes more problems than it solves for me. YMMV.
How critical is it that code destined for CPAN passes critic, if at all?
Not at all. perlcritic is a tool for the author only to ensure that they have followed their own choice of policies (or more usually policies enforced upon them by someone else). Upload dists which pass, upload dists which don't - it makes no odds.
All that said, I am curious as to why you use the string eval in that context at all. Can you explain what it is doing that a simple scalar assignment won't achieve?
🦛
In reply to Re: How Critical is Critic?
by hippo
in thread How Critical is Critic?
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |