If it's complex, why not evaluate code() first, then pass what it returns 
into the regexp?


R

At 12:39 30/09/2002 +0200, Jenda Krynicky wrote:
>From: Ramprasad A Padmanabhan <[EMAIL PROTECTED]>
>
> > while($string=~/regexp/g) { push @arr , $1 }
>
>I said that the code that needs access to the $n variables is inside
>the replacement code of s/regexp/code/ge!
>
>The regexp is fairly complex, "returns" many matched substrings and
>matches many times during the s///ge.
>
>Jenda
>=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
>There is a reason for living. There must be. I've seen it somewhere.
>It's just that in the mess on my table ... and in my brain
>I can't find it.
>                                         --- me
>
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to