RT #78391: Avoid using $_ when requiring modules
[p5sagit/App-FatPacker.git] / lib / App / FatPacker.pm
index 433cc0f..33a1f95 100644 (file)
@@ -133,7 +133,9 @@ sub script_command_packlists_for {
 sub packlists_containing {
   my ($self, $targets) = @_;
   my @targets = @$targets;
-  require $_ for @targets;
+  foreach my $t (@targets) {
+    require $t;
+  }
   my @search = grep -d $_, map catdir($_, 'auto'), @INC;
   my %pack_rev;
   my $cwd = cwd;