Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Regular expression "replace string interpolation" problem

by pc88mxer (Vicar)
on May 17, 2008 at 06:36 UTC ( #687065=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $x = '2+2';
    my $y = eval $x; # $y is the string '4'
    
  2. or download this
    my $replace = '"$1 Perl"';
    $text2 =~ s/$match/$replace/ee;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://687065]
help
Chatterbox?
[LanX]: Dortmund !
[choroba]: Hoorn?
[choroba]: Merkine?
[erix]: Nashorn is Diceros not monoceros

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2017-03-30 17:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (362 votes). Check out past polls.