in reply to Re: Occurence List
in thread Occurence List
In the above posting, notice how the mere mention of a hash-key causes it to magically appear, with the initial value of zero, so that it can be "++" incremented to the value of one. This bit of perl-mojo is called "autovivification." Otherwise known as "do the right thing quietly and with a minimum of fuss."
No , that is not autovivification . Just like this is not autovivification
$foo++; $bar[$_]++;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Occurence List
by Anique (Acolyte) on Oct 11, 2012 at 10:09 UTC | |
by Anonymous Monk on Oct 11, 2012 at 10:44 UTC | |
by Anique (Acolyte) on Oct 11, 2012 at 11:45 UTC | |
by Anonymous Monk on Oct 12, 2012 at 07:26 UTC | |
by Anique (Acolyte) on Oct 12, 2012 at 08:39 UTC | |
|