{ package foo; print __PACKAGE__; # prints "foo" } print __PACKAGE__; # prints "main"