in reply to Re^10: Interpolate into replacement with s//?
in thread Interpolate into replacement with s//?

Tip for you
$string =~ s/$search/ warn "Lets see what we're evaling\n$replace\n\n\n"; eval $replace; /ge;

Replies are listed 'Best First'.
Re^12: Interpolate into replacement with s//?
by philkime (Beadle) on Nov 24, 2011 at 12:22 UTC
    Ah. I appear to have been rather stupid, trying to interpolate into single quotes, thanks for the help.