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 => ( $] >= 5.0100 );
require Exporter;
our @ISA = qw(Exporter);
our @EXPORT = qw( );
{ #what is the significance of this curly brace?
my $somevar;
sub Somesub {
#some code here
}
}
1;
So what is the significance 1; and of the curly braces that enclose the $somevar and the Sub?
Many Thanks