But this works fine.#!/usr/bin/perl use strict; my $count{'abc'} = 0; print "$count{'abc'}\n";
So, why do I have to define %count? Shouldn't my $count{'abc'} have defined %count for me? Isn't this autovivification?my %count; $count{'abc'} = 0;
In reply to Autovivification Confusion by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |