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
- opensuse-leap 16.0: perl-SQL-Translator 1.660.0-bp160.1.11 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms