1 package System::Introspector::Probe::Groups;
4 use System::Introspector::Util qw(
11 return transform_exceptions {
13 my $fh = $self->_open_group_file;
14 while (defined( my $line = <$fh> )) {
16 my ($name, undef, $gid, $users) = split m{:}, $line;
17 $users = length($users)
18 ? [split m{,}, $users]
26 return { groups => \%group };
30 sub _open_group_file {
32 return handle_from_file '/etc/group';
41 System::Introspector::Groups - Gather group information
45 Uses C</etc/group> to gather information about groups.
51 =item L<System::Introspector>