in reply to regexp $1 in a variable

$a =~ s/$b/qq[qq{$c}]/eeg
Not sure exactly why the double-e (and double-qq) are needed, but what can I say -- it works!
--Stevie-O
$"=$,,$_=q>|\p4<6 8p<M/_|<('=> .q>.<4-KI<l|2$<6%s!<qn#F<>;$, .=pack'N*',"@{[unpack'C*',$_] }"for split/</;$_=$,,y[A-Z a-z] {}cd;print lc

Replies are listed 'Best First'.
Re: Re: regexp $1 in a variable
by mawe (Hermit) on Mar 02, 2004 at 07:14 UTC
    Maybe this looks a bit cleaner :-)
    ... $c='"a$1"'; ... $a =~ s/$b/$c/eeg ; ...