$ cat >test.pl use strict; use warnings; my $stuff = undef; BEGIN { $stuff = 1; } print "$stuff\n"; $ perl test.pl 1