Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Regexp substitution using variables

by BillKSmith (Monsignor)
on Nov 26, 2020 at 15:36 UTC ( [id://11124265]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        eval $command;
        return $value;
    }
    
  2. or download this
    1..2
    # $value =~ s/\Aabc\//123\//i
    ok 1 - use eval directly
    # $value =~ s/\Aabc\//123\//i
    ok 2 - use eval in class
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2024-04-23 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found