in reply to Re: Help with Regexp substitution using variables
in thread Help with Regexp substitution using variables

Or
$string =~ s/$reg/qq{qq{$reg2}}/eeg;

Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^3: Help with Regexp substitution using variables
by ikegami (Patriarch) on Jan 20, 2005 at 19:26 UTC
    I like making the eval EXPR evident over adding a second /e, because of the inheritant risks to using them.