in reply to Re^2: perlcritic and MCE::Loop
in thread perlcritic and MCE::Loop
DB<25> sub run (&@) { my $code =shift; $code->(@_) } DB<26> *mce_loop = \&run DB<27> mce_loop {print "code @_"} 1,2,3 # no comma needed code 1 2 3 DB<28> mce_loop sub {print "code @_"}, 1,2,3 # comma needed code 1 2 3 DB<29> mce_loop sub {print "code @_"} 1,2,3 # syntax error Number found where operator expected at (eval 38) ...
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: perlcritic and MCE::Loop
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 |