All it is is that your line: print("$passwords{"Matt"} is my password."); is being interpreted as :
Effectively making 'Matt' a bareword (i.e. not a function, string etc...)print("$passwords{"Matt"} is my password."); ^-- string -^ ^- another string-^
Always remember to use warnings and strict (and diagnostics for more info on any error messages).
Check out perldata for info on string interpolation... Hope this helps,
In reply to Re: hash problems
by BioLion
in thread hash problems
by weglarz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |