if (my $foo) { # $foo is lexically scoped to this block bar(); }