in reply to
Re^2: Occurence List
in thread Occurence List
However, when you
will cause perl to complain (if you have not declared (and thus created) $foo before),
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.