in reply to Re: Package declaration in code block
in thread Package declaration in code block
Another way to illustrate it would be:
use 5.010; { package Foo; say __PACKAGE__; } say __PACKAGE__;
If your Perl is recent enough, you can even do this:
use 5.014; package Foo { say __PACKAGE__; } say __PACKAGE__;
|
|---|