use warnings; use strict; { our $foo = 1; } print $foo; [download]
In reply to Re: Setting lexicals in a BEGIN block. by chromatic in thread Setting lexicals in a BEGIN block. by mephit