when you write
$ perl -le " use warnings; use strict; my $foo; $foo++; print $foo " 1
you declare $foo by saying my $foo; and then do something with it($foo++). Of course $foo++ would then not cause autovivication, because $foo already exists.
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 my $bar[396];, or even my $bar[396]++; before you can assign anything to it.
In reply to Re^5: Occurence List
by Anique
in thread Occurence List
by Hopfi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |