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
I don't know much about Perl, but usually you create a scope using curly braces. Probably $somevar shoudln't be available globally?