note
Anique
<p>when you write</p>
<c>$ perl -le " use warnings; use strict; my $foo; $foo++; print $foo "
1</c>
<p>you declare $foo by saying <c>my $foo;</c> and then do something with it(<c>$foo++</c>). Of course $foo++ would then not cause autovivication, because $foo already exists.</p>
<p>The thing with array indexes and hash keys, is that we do not have to declare them before we can use them. There is no need to say <c>my $bar[396];</c>, or even <c>my $bar[396]++;</c> before you can assign anything to it.</p>
998273
998414