Commits

Toby Inkster committed 1058c76

drop usage of smartmatch

Comments (0)

Files changed (1)

lib/RDF/TrineX/Serializer/MockTurtleSoup.pm

 use RDF::Trine;
 use RDF::Trine::Namespace qw( rdf rdfs );
 use RDF::Prefixes;
+use match::smart qw(match);
 
 use parent 'RDF::Trine::Serializer';
 
 {
 	my $self = shift;
 	my ($st) = @_;
-	return 1 if $st->predicate->uri ~~ $self->{labelling};
+	return 1 if match($st->predicate->uri, $self->{labelling});
 	return;
 }
 
 	}
 	
 	if ($n->is_resource
-	and $c eq 'predicate' || ($n->uri ~~ $self->{abbreviate}))
+	and $c eq 'predicate' || match($n->uri, $self->{abbreviate}))
 	{
 		return $_ for grep defined, $self->{p}->get_qname($n->uri);
 	}