Package scope 

package MyPackage;

my $foo = 'bar';

1;
package MyPackage {
    my $foo = 'bar';
}

1;