Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2017-12-11 04:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (286 votes). Check out past polls.

    Notices?