From: Peter Rabbitson Date: Tue, 2 Mar 2010 09:29:18 +0000 (+0000) Subject: Do not autoviv empty ENV vars X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bf9ee8dc82aef4a84853a63d416894a24594269b;p=dbsrgits%2FDBIx-Class-Historic.git Do not autoviv empty ENV vars --- diff --git a/lib/DBIx/Class/Optional/Dependencies.pm b/lib/DBIx/Class/Optional/Dependencies.pm index 6bba18b..f8800a8 100644 --- a/lib/DBIx/Class/Optional/Dependencies.pm +++ b/lib/DBIx/Class/Optional/Dependencies.pm @@ -176,7 +176,7 @@ my $reqs = { rdbms_asa => { req => { - (scalar grep $_, @ENV{qw/DBICTEST_SYBASE_ASA_DSN DBICTEST_SYBASE_ASA_ODBC_DSN/}) + (scalar grep { $ENV{$_} } (qw/DBICTEST_SYBASE_ASA_DSN DBICTEST_SYBASE_ASA_ODBC_DSN/) ) ? ( 'DateTime::Format::Strptime' => 0, ) : ()