note
amarquis
<p>Depends on how you define it. The text is talking about global variables, which are available to code outside their containing block:</p>
<code>
{
$i = 3;
}
print "$i\n";
</code>
<p>Prints 3. Compare with:</p>
<code>
{
my $i = 3;
}
print "$i\n";
</code>
<p>Without strict, this prints only a newline. This code declares a lexically scoped $i, which only persists through the end of its enclosing block. One of the best things about strict/warnings is that perl will complain about this kind of thing, possibly saving you a bunch of time hunting down a confusing error in a large program.</p>
704254
704281