Welcome to the Monastery | |
PerlMonks |
Re: hash problemsby BioLion (Curate) |
on Sep 20, 2010 at 16:41 UTC ( [id://860877]=note: print w/replies, xml ) | Need Help?? |
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...) 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,
Just a something something...
In Section
Seekers of Perl Wisdom
|
|