I have come across a few Perl modules that for example look similar to the following code:
package MyPackage; use strict; use warnings; use constant PERL510
The curly braces limit the scope of the local variable $somevar:
{ my $somevar; ... } # $somevar's scope ends here