Subject: | pod-coverage fails on unicode List in perl 5.14 |
The pod-coverage test probably doesn't need to be run by end-users,
but regardless of when you choose to run the test it fails on perl 5.14.
The included unicore/Name.pl defines subs that get put into the calling
module.
Using namespace::clean (or namespace::autoclean)
might be a way to handle this,
but the attached patch merely changes to another package
before requiring the file so that any defined subs go there instead.
Subject: | meta-unicode-subs-5-14.patch |
diff -ru Acme-MetaSyntactic-0.99-a/lib/Acme/MetaSyntactic/unicode.pm Acme-MetaSyntactic-0.99-c/lib/Acme/MetaSyntactic/unicode.pm
--- Acme-MetaSyntactic-0.99-a/lib/Acme/MetaSyntactic/unicode.pm 2006-11-05 18:30:50.000000000 -0700
+++ Acme-MetaSyntactic-0.99-c/lib/Acme/MetaSyntactic/unicode.pm 2011-05-26 11:07:02.000000000 -0700
@@ -14,6 +14,10 @@
eval { $data = require 'unicode/Name.pl'; };
}
elsif ( $] >= 5.007003 ) {
+ # load Name.pl beneath a separate package
+ # to avoid allowing it to define subs in this one
+ # alternatively we could use something like namespace::(auto)clean
+ package Acme::MetaSyntactic::unicode::unicore_Name_pl;
eval { $data = require 'unicore/Name.pl'; };
}
Only in Acme-MetaSyntactic-0.99-c: MYMETA.json
Only in Acme-MetaSyntactic-0.99-c: MYMETA.yml