On Wed, Mar 19, 2003 at 11:09:01AM -0500, Dan Sugalski wrote:
> By the time the regex is actually executed, it's fully specified. By 
> definition if nothing else--you aren't allowed to selectively 
> redefine rules in the middle of a regex that uses those rules. Or, 
> rather, you can but the update won't take effect until after the end 
> of the regex, the same way that you can't redefine a sub you're in 
> the middle of executing. (And yes, I'm aware that if you do that 
> you'll pick up the new version if you recursively call, but that 
> won't work with regexes)

Are you implying that 

        $fred = rx/fred/;
        $string ~~ m:w/ <$fred> { $fred = rx/barney/; } rubble /

won't match "barney rubble"?

-Scott
-- 
Jonathan Scott Duff
[EMAIL PROTECTED]

Reply via email to