in reply to Braces around a section of code

Hello thnksnw,

using local with a variable is one of them

my $var = 42; { local $var = 13; .. }

This is particularly useful when dealing with $@ like explained in eval doc:

{ local $@; # protect existing $@ eval { ... };
L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.