in reply to Re^2: perlcritic and MCE::Loop
in thread perlcritic and MCE::Loop

> '%result = mce_loop sub {'

> Results in a syntax error

this shouldn't be, the problem must be somewhere in your code.

I looked into the code of MCE::Loop and it works like I guessed.

That's what's essentially happening in the import

DB<8> sub run (&@) {} DB<9> *mce_loop = \&run DB<10> mce_loop {print "code"} DB<11> mce_loop sub {print "code"} DB<12> mce_loop sub {print "code"},@_ DB<13> mce_loop 1 Type of arg 1 to main::run must be block or sub {} (not constant item) + at

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery