On Tue, Jan 25, 2022 at 01:20:17PM +0000, hv@crypt.org wrote: > I think of local() as "temporarily replace the value at this lvalue > with a new value, restore it at the end of the current lexical scope". > This is hugely useful in many situations that would otherwise require > more and slower code with much more opportunity for error. Out of curiosity, is there any reason not to simply shadow it: my $x = ...?Thread Previous | Thread Next