if (!defined $hash{$key}) { $hash{$key} = 0; } [download]
Or that new-fangled thing with the //.
In reply to Re: Perl Hash Behavior. by marinersk in thread Perl Hash Behavior. by Anonymous Monk