in reply to Re: Local for lexicals
in thread Local for lexicals

(I thought I posted this already, but it doesn't seem to have appeared. Let's see if I get two dups in a single thread!)

Thanks for the suggestion, but, unfortunately, it's only the bit in the inner scope that I control—given an existing coderef $f that closes over an existing lexical $x, I want to write some code that changes $x, but only temporarily, in such a way that $f ‘sees’ the change.