Perl Monk, Perl Meditation | |
PerlMonks |
Re: Confused Still by Hash Refsby g0n (Priest) |
on Feb 03, 2006 at 12:06 UTC ( [id://527606]=note: print w/replies, xml ) | Need Help?? |
Your problem is this:
if you are calling it with this:
You are sending the sub a scalar (I assume) and a hashref, but the assignment is trying to assign a hash, not a hashref, and therefore expecting the parameters after $userdb to be a list (i.e. the contents of the hash itself). As an alternative, try:
FWIW, thats what:
is telling you. Update: all the uses of %group in the sub appear to be addressing a hashref $group, with the exception of the assignment, so there's no need to dereference it at all.
--------------------------------------------------------------
"If there is such a phenomenon as absolute evil, it consists in treating another human being as a thing."
In Section
Seekers of Perl Wisdom
|
|