in reply to perlcritic and MCE::Loop
Short guess: write
%result = mce_loop sub {
if you want to keep that Citric rule activated.
Long guess: mce_loop seems to be defined with a prototype (&) which treats a following code block like a sub
Critic doesn't see that and thinks the @_ is not at the right position.
Inserting an explicit sub should fix that
Disclaimer: I'm neither a user of critic nor mce, and can't test.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
It's unlikely that Critic is always doing that, because such prototype stuff is not uncommon. The full answer is in your environnement.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perlcritic and MCE::Loop
by redtux (Sexton) on Feb 19, 2021 at 19:07 UTC | |
by LanX (Saint) on Feb 19, 2021 at 21:40 UTC | |
by redtux (Sexton) on Feb 20, 2021 at 14:52 UTC | |
by LanX (Saint) on Feb 20, 2021 at 21:02 UTC | |
by LanX (Saint) on Feb 20, 2021 at 15:56 UTC | |
by LanX (Saint) on Feb 19, 2021 at 19:27 UTC |