# scope file if ($condition1) { # scope if my $inner = 1; } else { # scope else my $inner = 2; } # scope file print $inner;