%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
In reply to Re^2: perlcritic and MCE::Loop
by redtux
in thread perlcritic and MCE::Loop
by redtux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |