Just another Perl shrine | |
PerlMonks |
Re^3: hash parameter questionby jarich (Curate) |
on Dec 13, 2005 at 02:43 UTC ( [id://516217]=note: print w/replies, xml ) | Need Help?? |
Nope. $_ contains a string. A key from %users; which is presumably a username. Your suggestion will therefore not work. Had PerlHeathen written:
(note the use of values) then $_ would be a reference to a hash and then your solution would make the code work. For example:
It is likely that this is what PerlHeathen was trying to write in the first place. jarich
In Section
Seekers of Perl Wisdom
|
|