in reply to Re: perlcritic and MCE::Loop
in thread perlcritic and MCE::Loop
%result = mce_loop sub {
Results in a syntax error
However wrapping the the whole thing in a sub removes the error, will have to see if it breaks the code.ie
%result = mce_loop {sub { my ($mce,$chunk_ref,$chunk_id) = @_; my %ret; for my $item (@{ $chunk_ref }) { my $ret=tags_get($item); $ret{$item->[1]}=$ret->{$item->[1]}; #say $ret{$_->[1]}; } $mce->gather(%ret); } } $fileprobe;
thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: perlcritic and MCE::Loop
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 | |
|
Re^3: perlcritic and MCE::Loop
by LanX (Saint) on Feb 19, 2021 at 19:27 UTC |