However, when you
use strict;writing
$foo++;will cause perl to complain (if you have not declared (and thus created) $foo before),
while writing
will cause no complaints, even if you never used this index before(or a higher one), or never told Perl how big @bar should be. You will have to declare @bar, of course. So these two examples are not comparable. And I believe the second example actually is where we see autovivication at work.
In reply to Re^3: Occurence List
by Anique
in thread Occurence List
by Hopfi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |