1 # sample2.pl (compareのsample)
2 # $Id: sample2.pl,v 1.3 2003-10-08 13:30:29 moro Exp $
5 my $s1 = CHISE->define_char(strokes => 12, radical => 9);
6 my $s2 = CHISE->define_char(strokes => 12, radical => 9, daikanwa => 694);
7 my $c = $s1->compare($s2);
9 if ($c == $CHISE::EXCLUSIVE) {
11 } elsif ($c == $CHISE::HAVE_INTERSECTION) {
13 } elsif ($c == $CHISE::PROPER_SUBSET) {
15 } elsif ($c == $CHISE::PROPER_SUPERSET) {
17 } elsif ($c == $CHISE::EQSET) {