On Tue, Feb 18, 2003 at 09:25:41PM +0000, Chisel Wright wrote:
> I found s/(?${parameter}:$search)/$replace/
> 
> e.g.
> 
>   $search  = q[(.+)];
>   $replace = q['$1'];
> 
> If I passed the value "16/07/2002 14:58:09" to the eval() version I
> would get: '16/07/2002 14:58:09'
> If I pass the value "16/07/2002 14:58:09" to the s///, I get: '$1'

I don't know how you'll get that strategy to work (having $1 in
$replace). /e doesn't seem to help and I'm not sure why.

Anyway, if you're having trouble with for() { for () { eval "" } } then
move the eval outside, i.e. generate a string that contains the nested
for()s and run that code as a single eval.

Paul

-- 
Paul Makepeace ....................................... http://paulm.com/

"If you scream too loudly, then the tea-leaves will reveal all, in good
 time."
   -- http://paulm.com/toys/surrealism/

Reply via email to