From: Peter Rabbitson Date: Wed, 2 Jun 2010 10:43:30 +0000 (+0000) Subject: Really fix uninit warning X-Git-Tag: v0.08122~21 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=commitdiff_plain;h=50360f3e39e63cc24420078ea829b101c6ed6f5f Really fix uninit warning --- diff --git a/t/lib/DBICTest/AuthorCheck.pm b/t/lib/DBICTest/AuthorCheck.pm index 4507837..90903b4 100644 --- a/t/lib/DBICTest/AuthorCheck.pm +++ b/t/lib/DBICTest/AuthorCheck.pm @@ -31,7 +31,7 @@ sub _check_author_makefile { # not using file->stat as it invokes File::stat which in turn breaks stat(_) my ($mf_pl_mtime, $mf_mtime, $optdeps_mtime) = ( map - { (stat ($root->file ($_)) )[9] } + { (stat ($root->file ($_)) )[9] || undef } # stat returns () on nonexistent files (qw|Makefile.PL Makefile|, $optdeps) );