Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Regexp substitution using variables

by bart (Canon)
on Nov 28, 2020 at 11:49 UTC ( #11124317=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        if($flages =~ s/g//) {
            s/(?:$flags)$pattern/replacement($replacement)/ge;
    ...
        else {
            s/(?:$flags)$pattern/replacement($replacement)/e;
        }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2022-05-19 08:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (71 votes). Check out past polls.

    Notices?