in reply to Re: Regexp variable substitution of special variable
in thread Regexp variable substitution of special variable

Another minor comment ... e's stack. s/$search/qq["$replace"]/ee is exactly the same as yours. Which is better is a matter of opinion. :-)

Replies are listed 'Best First'.
Re^3: Regexp variable substitution of special variable
by diotalevi (Canon) on Jul 01, 2005 at 21:09 UTC
    I think its better to make the second eval explicit and very visible because it is a very different sort of eval from the first /e. So I really, strongly, prefer my version. They're functionally equivalent but you can see that something really, highly unusual is happening in mine. It isn't so visible in yours.