No longer need to match the first part of a file
[dbsrgits/DBIx-Class-DeploymentHandler.git] / lib / DBIx / Class / DeploymentHandler / DeployMethod / SQL / Translator.pm
index 4eb5c6f..b43b070 100644 (file)
@@ -180,7 +180,7 @@ method _run_sql_and_perl($filenames) {
         }
         $storage->_query_end($line);
       }
-    } elsif ( $filename =~ /^(.+)\.pl$/ ) {
+    } elsif ( $filename =~ /\.pl$/ ) {
       log_debug { "[DBICDH] Running Perl from $filename" };
       my $filedata = do { local( @ARGV, $/ ) = $filename; <> };