for (1..2) { my $x; # New variable each time. print($x); }