1 package SQL::Translator::Schema::Role::Compare;
10 Determines if this object is the same as another.
12 my $isIdentical = $object1->equals( $object2 );
19 return 0 unless $other;
20 return 1 if overload::StrVal($self) eq overload::StrVal($other);
21 return 0 unless $other->isa( ref($self) );
25 sub _compare_objects {
26 # my ($self, $obj1, $obj2) = @_;
29 Data::Dumper->new([$_[1]])->Terse(1)->Indent(0)->Deparse(1)->Sortkeys(1)->Maxdepth(0)->Dump
31 Data::Dumper->new([$_[2]])->Terse(1)->Indent(0)->Deparse(1)->Sortkeys(1)->Maxdepth(0)->Dump
35 # cluck("How did I get here?");
37 # $Data::Dumper::Maxdepth = 1;
38 # print "obj1: ", Dumper($obj1), "\n";
39 # print "obj2: ", Dumper($obj2), "\n";