I have looked everywhere I can think, but have not been able to find out what "match_group" is.
I was real happy with the program referenced by merlyn in
RE: expect.pm (user_manage) as long as I used flat files.
Now that I need to move on to store the user and group information in a database, I am having problems.
Users designated as "administrators" are not getting the administrator screen (do_administration). Here is the code from user_manage that seems to be the problem area:
if ($ADMIN_GROUP && $db->match_group(-user => $user,
-group => $ADMIN_GROUP)) {
do_administration($db);
exit 0;
}
(My misunderstanding probably has a lot to do with my lack of understanding/aversion to oo programming)
I have $ADMIN_GROUP set to "administrators" and when I look in the database, the group is set to "administrators".
I have put in debug statements, but don't know how to handle debugging using match_group.
I searched the user_manage program, but there is only 1 occurrence of match_group.
Any help or links would be great!
Thanks,
Daniel
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.