We'll see in a while that there are other uses for the naked
block, but one of its features is that it provides a scope for
temporary lexical variables:
{
print "Please enter a number: ";
chomp(my $n = <STDIN>);
my $root = sqrt $n; # calculate the square root
print "The square root of $n is $root.\n";
}