in reply to Tying Hash for DBM
$h(a) = 20;
should be
$h{a} = 20;
(note the braces rather than parenthesis)
while (($k, $v) = %h)
should be
while (($k, $v) = each %h)
should be
$h{a} = 20;
(note the braces rather than parenthesis)
while (($k, $v) = %h)
should be
while (($k, $v) = each %h)
In Section
Seekers of Perl Wisdom