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