From 52ad73abb7b47d6b139146e4f68a880a8e1b2c30 Mon Sep 17 00:00:00 2001 From: Paul Cochrane Date: Sat, 7 Feb 2015 15:01:32 +0100 Subject: [PATCH] Replace string eval with block eval in docs This is for when users of the module wish to avoid having Test::Pod::Coverage as an installation dependency of their own module. --- lib/Test/Pod/Coverage.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Test/Pod/Coverage.pm b/lib/Test/Pod/Coverage.pm index f803b93..a714496 100644 --- a/lib/Test/Pod/Coverage.pm +++ b/lib/Test/Pod/Coverage.pm @@ -62,7 +62,7 @@ Test::Pod::Coverage a prerequisite for installing, create the following as your F file: use Test::More; - eval "use Test::Pod::Coverage"; + eval { use Test::Pod::Coverage }; plan skip_all => "Test::Pod::Coverage required for testing pod coverage" if $@; plan tests => 1; @@ -73,7 +73,7 @@ file and have C automatically find and check all modules in the module distribution: use Test::More; - eval "use Test::Pod::Coverage 1.00"; + eval { use Test::Pod::Coverage 1.00 }; plan skip_all => "Test::Pod::Coverage 1.00 required for testing POD coverage" if $@; all_pod_coverage_ok();