The parser is not perfect. It seeems to be tripping up on the $batchCnt++ / part specifically.. You could help it by adding parentheses, i.e. write ($batchCnt++) / instead.
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On 24 Sept 2024 11:37, Jan Ploski <jploski@users.sourceforge.net> wrote:
The parser is not perfect. It seeems to be tripping up on the $batchCnt++ / part specifically.. You could help it by adding parentheses, i.e. write ($batchCnt++) / instead.
Hello,
I have a problem when this code is being used.
the syntax highlighting shows the text in purple rather than show the proper highlighting.
use List::MoreUtils qw(first_index part );
my (@finalOutputLst) = 1..9l
my ($batchCnt) = 0; my ($batchSize) = 3;
my (@allPartLst) = part { int( $batchCnt++ / $batchSize ) } @finalOutputLst;
The problem seems to be the / - it is being interpretated as the start of a regular expressions rather than for a divider.
Any help would be appreciated before I raise an issue.
Epic version 0.7.11
Thanks
robbinma
The parser is not perfect. It seeems to be tripping up on the $batchCnt++ / part specifically.. You could help it by adding parentheses, i.e. write ($batchCnt++) / instead.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">