No longer need to match the first part of a file
Arthur Axel 'fREW' Schmidt [Wed, 19 May 2010 06:51:17 +0000 (01:51 -0500)]
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; <> };