Just saying that you have a 'problem' with some code without explicitly stating what the problem is does not give us much to go on.
match_group() is a method in HTTPD::RealmManager that returns a true/false letting you know if a given user is in a given group. Pretty simple, huh? Does this if condition ever evaluate as true? If so, have you verified your call to db_administration? If the if statement never evaluates to true but you expect that it should, have you verified what's in $ADMIN_GROUP and $user? If so, are you positive that the given user is in the given group?
I also noticed that above code is taken verbatim from this program. Are you using this program? Have you modified it? Did you modify it correctly? If you did modify it, you might wish to modify it to use strict. It might just catch your error for you. (and shame on Lincoln Stein for publishing such a large program that doesn't use strict)
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to (Ovid) Re: cgi unknown function - match_group
by Ovid
in thread cgi unknown function - match_group
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |