SQL::Tr...Compare(3)

πŸ’… SQL::Tr...Compare(3) β€” SQL::Translator::Schema::Role::Compare πŸ’…

okay bestie, this is the User Contributed Perl Documentation page for SQL::Tr...Compare(3), and it's literally all about comparing objects. tiny page, big β€œis it the same tho?” energy ✨

🌸 NAME 🌸

SQL::Translator::Schema::Role::Compare - compare objects

✨ SYNOPSIS ✨

           package Foo;
           use Moo;
               with qw(SQL::Translator::Schema::Role::Compare);

               $obj->equals($other);

so you roll this role into Foo (or wherever) with with qw(...), then you hit it with $obj->equals($other); and boom β€” comparison era πŸ’…

πŸ’– DESCRIPTION πŸ’–

This Moo::Role provides a method to compare if two objects are the same. That's the whole vibe: one method, object-vs-object, are-they-the-same check 🫢

πŸŽ€ METHODS πŸŽ€

πŸ’… equals

Determines if this object is the same as another.

         my $isIdentical = $object1->equals( $object2 );

the example drops the answer into $isIdentical, so you can flex your comparison result immediately 😌


sign-off time, bestie: this page is from perl v5.42.0, dated 2024-12-12, and the manual page is SQL::Tr...Compare(3) β€” mwah πŸ’‹

πŸ“¦ where this page comes from