in reply to Re^2: Confused Still by Hash Refs
in thread Confused Still by Hash Refs
group_create(\%hash);
and you're doing:
$userdb->group_create ( $group->{groupname} )
$group->{groupname} isn't a hashref, in fact AFAICT it is the value 'wheel'. Try this:
$userdb->group_create($group);
or
$userdb->group_create({groupname=>$group->{groupname}});
if you don't want to pass the rest of the contents of %$group in.
--------------------------------------------------------------
"If there is such a phenomenon as absolute evil, it consists in treating another human being as a thing."
John Brunner, "The Shockwave Rider".
|
|---|