Nested...Member(3pm)

πŸ“¦
version 0.01 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Set::NestedGroup::Member β€” the whole vibe πŸ’–

okay bestie, so this is Nested...Member(3pm) from the User Contributed Perl Documentation, and it's literally a tiny little page but it's iconic and we're gonna go through it together, no cap.


✨ NAME ✨

Set::NestedGroup::Member β€” it's a Set of nested groups. that's the whole summary, short and sweet, she said what she said πŸŽ€


🌸 SYNOPSIS 🌸

here's you, living your best life, using it:

use Set::NestedGroup;
$acl = new Set::NestedGroup;
$acl->add('user','group');
$acl->add('group','parentgroup');
$list=$acl->list();
for(my $i=0;$i<$list->rows();$i++){
  my ($member,$group)=$list->next();
  print "$member=$group\n";
}

see how she pops out a $list and then you just loop over it row by row? chef's kiss 🫢


πŸ’… DESCRIPTION πŸ’…

so here's the tea: Set::NestedGroup::Member objects are what you get handed back from a Set::NestedGroup object's list() method. that's it. that's the job. she's a little member-record girlie and she serves ✨


πŸ‘‘ METHODS πŸ‘‘

rows ()

returns the number of rows this has. lowkey the most useful thing ever β€” you use it to construct a loop so you can extract all the data. go get your data bestie πŸ¦‹

next ()

returns a list comprising of the next member & group. returns undef when the list is exhausted 😭 she's done, she's tired, there's nothing left to give. respect the undef.


πŸŽ€ AUTHOR πŸŽ€

Alan R. Barclay, gorilla@elaine.drink.com β€” absolute legend, wrote this whole thing πŸ‘‘


🌈 SEE ALSO 🌈

iykyk, go read those next πŸ’œ


πŸ’€ POD ERRORS πŸ’€

okay so hey! the above document had some coding errors, and they are explained below. not me snitching on the POD, but here we are πŸ™ˆ

Around line 73:

'=item' outside of any '=over'

Around line 83:

You forgot a '=back' before any '=head1'
fr fr, fix your POD bestie, the parser is crying 😭

and that's the whole page, we ate and left no crumbs πŸ“

this was perl v5.36.0, dated 2022-10-15, and yeah the manual page name really is Nested...Member(3pm) with the ellipsis and everything β€” don't ask, just vibe with it πŸ’–βœ¨

πŸ“¦ where this page comes from