Menu

Incorrect formatting for List::MoreUtils - part BLOCK LIST

Help
Mark R
5 days ago
5 days ago
  • Mark R

    Mark R - 5 days ago

    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

     
    • Jan Ploski

      Jan Ploski - 5 days ago

      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
      • Mark R

        Mark R - 5 days ago

        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

        Thanks. That resolved the issue.
        Thanks for the quick response 

        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.


        Incorrect formatting for List::MoreUtils - part BLOCK LIST


        Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/e-p-i-c/discussion/258688/

        To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/



         

Log in to post a comment.