Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by rsFalse (Chaplain)
on Jan 17, 2021 at 20:39 UTC ( [id://11127044]=note: print w/replies, xml ) Need Help??


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

I was only playing with regex and eval inside. I tried to generate some substitution patterns, e.g. zipping or meshing chars.

Sincerely, earlier today I found other "bug" (=feature) that $_ inside (?{ ... }) binds to LHS after I tried to manipulate $_ as a global. But I found in perlre that it is desired behaviour. So then I tried to play with this feature.
  • Comment on Re^2: Strange behaviour when regex variable is modified during match?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-19 11:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found