Fix under perl 5.19.4
Arthur Axel 'fREW' Schmidt [Sat, 21 Sep 2013 17:20:44 +0000 (12:20 -0500)]
Changes
lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm

diff --git a/Changes b/Changes
index f2da0f2..9d6b05c 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,6 +1,7 @@
 Revision history for {{$dist->name}}
 
 {{$NEXT}}
+  - Fix under perl 5.19.4 (thanks Hugmeir)
 
 0.002207  2013-08-29 23:18:27 CST6CDT
   - Modernize usage of Log::Contextual, creating a simple example for how to
index 9efa8d4..e59c062 100644 (file)
@@ -483,10 +483,10 @@ sub _sql_from_yaml {
   my @sql;
 
   my $actual_file = $self->$from_file($version);
-  for my $yaml_filename (@{
+  for my $yaml_filename (@{(
      DlogS_trace { "generating SQL from Serialized SQL Files: $_" }
         (ref $actual_file?$actual_file:[$actual_file])
-  }) {
+  )}) {
      my $sqlt = SQL::Translator->new({
        add_drop_table          => 0,
        parser                  => 'SQL::Translator::Parser::YAML',