in reply to hash problems
1. plz start your scripts with use strict; and use warnings;.
2. %passwords = { is most certainly wrong, use parens for hash (lists), curlies are for hash {references}
3. you're mixing doublequotes in the variable interpolation:
, no need for them when adressing hash-keys:print("$passwords{"Matt"} is my password.");
print("$passwords{Matt} is my password.")
Cheers Rolf
|
|---|