aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-03 15:43:20 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-03 15:44:28 +1300
commitd4afd463f0b0dc51977d05e3d1962193985c7555 (patch)
treed46842d1829381f182b5e98206d86eea3582d04c
parentd61c5ece21b2bbfcfd67f7472c7832395f9c458b (diff)
downloadList-Breakdown-d4afd463f0b0dc51977d05e3d1962193985c7555.tar.gz (sig)
List-Breakdown-d4afd463f0b0dc51977d05e3d1962193985c7555.zip
Adjust exporting to accommodate old Perlsv0.03
-rw-r--r--lib/List/Filters.pm12
-rw-r--r--t/words.t2
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/List/Filters.pm b/lib/List/Filters.pm
index 41e88ff..73dcd45 100644
--- a/lib/List/Filters.pm
+++ b/lib/List/Filters.pm
@@ -10,14 +10,14 @@ use 5.006;
# Import required modules
use Carp;
-use Exporter 'import';
-# Specify package version
-our $VERSION = 0.02;
-
-# Specify functions available for export
+# Handle exporting in a way Perl v5.6 should tolerate
+use base qw(Exporter);
our @EXPORT_OK = 'filter';
+# Specify package version
+our $VERSION = 0.03;
+
# Dispatch table of functions to handle different ref types for the spec
# hashref's values
my %types = (
@@ -89,7 +89,7 @@ List::Filters - Build list sublists matching conditions
=head1 VERSION
-Version 0.02
+Version 0.03
=head1 DESCRIPTION
diff --git a/t/words.t b/t/words.t
index bdefa43..3f66fae 100644
--- a/t/words.t
+++ b/t/words.t
@@ -8,7 +8,7 @@ use Test::More tests => 1;
use List::Filters 'filter';
-our $VERSION = 0.01;
+our $VERSION = 0.03;
my @words = qw(foo bar baz quux wibble florb);
my $filters = {