Geomet...:Equal(3pm)
π Geometry::Primitive::Equal β the equality role, bestie π
okay so real quick, this is a page from the User Contributed Perl Documentation for Geometry::Primitive::Equal (that's the 3pm situation, iykyk). Sit down, get comfy, we're talking about equality and honestly? it's giving main character energy. π«Ά
β¨ NAME β¨
Geometry::Primitive::Equal β it's the Equality Role, periodt. π
πΈ DESCRIPTION πΈ
Geometry::Primitive::Equal is a Moose role for equality. That's it, that's the whole vibe. It's the little role that says "hey, two of these things β are they the same or not?" and then lets you be the one who decides how. π¦
π SYNOPSIS π
here's how you roll with it, no cap:
with 'Geometry::Primitive::Equal';
sub equal_to {
my ($self, $other) = @_;
# compare and return!
}
so you pull the role in with with, you write your own equal_to, and then you go off and compare and return. that's the whole bit. π₯
π METHODS π
equal_to
Implement this. like, that's the assignment, bestie β this one is yours to write. βοΈβ¨
not_equal_to
Provided you implement equal_to, this will be implemented for you! not you doing double the work, no ma'am. you write one, the role handles the other. obsessed. ππ
π AUTHOR π
Cory Watson <gphat@cpan.org> β legend behavior, honestly. π
π COPYRIGHT & LICENSE π
You can redistribute and/or modify this code under the same terms as Perl itself. (that's the licensing tea, go off responsibly π)
fr fr, that's the whole page. short, sweet, and lowkey iconic.
and that's a wrap, my love π this little beauty came from perl v5.36.0 and it's dated 2022-12-12 β so it's vintage, but like, the good vintage. mwah. π π
π¦ where this page comes from
- debian bookworm: libgeometry-primitive-perl 0.24-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libgeometry-primitive-perl 0.24-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libgeometry-primitive-perl 0.24-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libgeometry-primitive-perl 0.24-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libgeometry-primitive-perl 0.24-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms