http://qs1969.pair.com?node_id=11127125


in reply to Strange behaviour when regex variable is modified during match?

My first thought are:

  • Please define what you mean when you 'soft code' a variable. Please give an absolutely clear definition. Define this in general terms and then define again in the specific context of Perl. Two definitions required.

  • Secondly:

  • Define sandbox program. What is this?


  • If necessary use a footnote section at the bottom of your question.

    I don't know the answer to your question. However I have a feeling that your problem might relate to multithreading and associated problems. If I am at all right in this 'feeling' (i.e. I don't know): Then you might need to tell us what processor chip your using.
    • Comment on Re: Strange behaviour when regex variable is modified during match?

    Replies are listed 'Best First'.
    Re^2: Strange behaviour when regex variable is modified during match?
    by rsFalse (Chaplain) on Jan 20, 2021 at 20:50 UTC
      Hi.
      While I was playing with this regex, I wanted to have: $A = '1' x $n . '2'; for a simpler use (is was my soft-coding).
      By 'sandbox' I mean experimenting script, a draft... No multithreading in it. Simply learning regex'es and trying to find variety of ways how to manipulate any strings.