Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Tying Hash for DBM

by nardo (Friar)
on Jul 23, 2001 at 21:15 UTC ( #99083=note: print w/replies, xml ) Need Help??


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)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://99083]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2022-05-17 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (68 votes). Check out past polls.

    Notices?