Apache-Htgroup
view release on metacpan or search on metacpan
you provide a $file argument, "save" will attempt to write to that
location.
ismember
$foo = $htgroup->ismember($user, $group);
Returns true if the username is in the group, false otherwise
Internals
Although this was not the case in earlier versions, the internal data
structure of the object looks something like the following:
$obj = { groupfile => '/path/to/groupfile',
groups => { group1 => { 'user1' => 1,
'user2' => 1,
'user3' => 1
},
group2 => { 'usera' => 1,
'userb' => 1,
'userc' => 1
},
lib/Apache/Htgroup.pm view on Meta::CPAN
return ( $self->{groups}->{$group}->{$user} ) ? 1 : 0;
} # }}}
1;
# Documentation {{{
=head1 Internals
Although this was not the case in earlier versions, the internal
data structure of the object looks something like the following:
$obj = { groupfile => '/path/to/groupfile',
groups => { group1 => { 'user1' => 1,
'user2' => 1,
'user3' => 1
},
group2 => { 'usera' => 1,
'userb' => 1,
'userc' => 1
},
( run in 0.404 second using v1.01-cache-2.11-cpan-64827b87656 )