Reset an array at the end of the frill processing

Hi,

I have a question with the array resetting after the end of the frill processing.

Originally, I planned to use an array to store texts on each page for indexing. The result is perfect when composing only one page. Unfortunately, when composing more than a page (compose range(+)), the array on each page has changed. I wonder if this is caused by the variables from the next page moved to the previous page for pagination checking.

I have undef the array at the end of the frill processing but the issue still exists. Can anyone point me in the right direction?

Regards,

Terrence

Parents
  • Hi Terrence,

    Just like Jonathan I have trouble understanding exactly what you are asking.

    I guess that the 'array' you are talking about is a perl array? Correct?
    But you will have to give us a lot of more info before we can help you.
    Maybe some extracts of your code might help.
    Also a bit more explanation on what and how you put things into the array and how and where you read them back out.

    Regards

    Bart

  • Terrence,

    I forgot to tell you that you no longer reset the perl array at the end of the frills processing loop.
    Like this there is no need to reset the number register 10.

    The perl array will just hold all of the index terms that are present in the division.
    And the number register will just keep on incrementing with each <index> tag found in the division.
    But with every compose (one page, page range, whole div,..) the number register gets set to the correct starting value.
    That is the real beauty of using number registers.

Reply
  • Terrence,

    I forgot to tell you that you no longer reset the perl array at the end of the frills processing loop.
    Like this there is no need to reset the number register 10.

    The perl array will just hold all of the index terms that are present in the division.
    And the number register will just keep on incrementing with each <index> tag found in the division.
    But with every compose (one page, page range, whole div,..) the number register gets set to the correct starting value.
    That is the real beauty of using number registers.

Children