Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Strange behaviour when regex variable is modified during match?

by betmatt (Scribe)
on Jan 20, 2021 at 11:25 UTC ( #11127125=note: print w/replies, xml ) Need Help??


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.

    Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Domain Nodelet?
    Node Status?
    node history
    Node Type: note [id://11127125]
    help
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others perusing the Monastery: (5)
    As of 2022-09-25 14:00 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      I prefer my indexes to start at:




      Results (116 votes). Check out past polls.

      Notices?