From 55dc6930f89e952b796602f19364212aa4d8366d Mon Sep 17 00:00:00 2001 From: Zakariyya Mughal Date: Sat, 2 Mar 2024 17:24:42 -0500 Subject: [PATCH] Fix for change in `import()` behaviour for Perl > 5.39.1 Move the `Exporter::Tiny` setup before loading anything else so that the `import()` is visible. Use `require` for `Attean` so that `Attean->import()` is not called. Fixes . See also . --- lib/Attean/RDF.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Attean/RDF.pm b/lib/Attean/RDF.pm index 1f051530..63df016b 100644 --- a/lib/Attean/RDF.pm +++ b/lib/Attean/RDF.pm @@ -35,14 +35,14 @@ package Attean::RDF 0.033 { use v5.14; use warnings; - use Attean; - use List::MoreUtils qw(zip); require Exporter::Tiny; - use namespace::clean; - our @ISA = qw(Exporter::Tiny); our @EXPORT = qw(iri blank literal dtliteral langliteral variable triple quad triplepattern quadpattern bgp); + require Attean; + use List::MoreUtils qw(zip); + use namespace::clean; + =item C<< variable( $value ) >> C<< Attean::Variable->new($value) >>