Skip to content

Commit

Permalink
Fix for change in import() behaviour for Perl > 5.39.1
Browse files Browse the repository at this point in the history
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 <kasei#167>.

See also <Perl/perl5#21269>.
  • Loading branch information
zmughal committed Mar 10, 2024
1 parent 8b1bf75 commit 55dc693
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Attean/RDF.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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) >>
Expand Down

0 comments on commit 55dc693

Please sign in to comment.