summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-07-08 17:42:41 -0400
committerJesse Luehrs <doy@tozt.net>2013-07-08 17:42:41 -0400
commit8c0ecb0fe45fe5c2c8bd07e9cb3a8f485bf17837 (patch)
tree472cd44267d1bd9aedd81433e83caea421c7f191
parentf9f91368fd716bd684d89013b92b6995f29b24d5 (diff)
downloaddist-checkconflicts-8c0ecb0fe45fe5c2c8bd07e9cb3a8f485bf17837.tar.gz
dist-checkconflicts-8c0ecb0fe45fe5c2c8bd07e9cb3a8f485bf17837.zip
remove a couple more eval "require ..."
-rw-r--r--lib/Dist/CheckConflicts.pm4
1 files 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;