From 8c0ecb0fe45fe5c2c8bd07e9cb3a8f485bf17837 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 8 Jul 2013 17:42:41 -0400 Subject: remove a couple more eval "require ..." --- lib/Dist/CheckConflicts.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Dist/CheckConflicts.pm b/lib/Dist/CheckConflicts.pm index 6357b31..97c22d9 100644 --- a/lib/Dist/CheckConflicts.pm +++ b/lib/Dist/CheckConflicts.pm @@ -103,10 +103,10 @@ sub import { my %conflicts = %{ $conflicts || {} }; for my $also (@{ $alsos || [] }) { - eval "require $also; 1;" or next; + eval { require_module($also) } or next; if (!exists $CONFLICTS{$also}) { $also .= '::Conflicts'; - eval "require $also; 1;" or next; + eval { require_module($also) } or next; } if (!exists $CONFLICTS{$also}) { next; -- cgit v1.2.3-54-g00ecf