Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Confused Still by Hash Refs

by g0n (Priest)
on Feb 03, 2006 at 12:33 UTC ( [id://527613]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Confused Still by Hash Refs
in thread Confused Still by Hash Refs

Yep, take a look at DBIx::Userdb. The syntax is:

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".

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://527613]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-19 14:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found