From: Peter Rabbitson Date: Tue, 25 May 2010 09:14:28 +0000 (+0000) Subject: Fix undef warning X-Git-Tag: v0.08122~59 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a256e995421c10095048e1b56e9cd7e913e96cc9;p=dbsrgits%2FDBIx-Class.git Fix undef warning --- diff --git a/t/lib/DBICTest/AuthorCheck.pm b/t/lib/DBICTest/AuthorCheck.pm index 4d0c528..4507837 100644 --- a/t/lib/DBICTest/AuthorCheck.pm +++ b/t/lib/DBICTest/AuthorCheck.pm @@ -43,15 +43,16 @@ sub _check_author_makefile { push @fail_reasons, "Missing ./inc directory"; } - if (not $mf_mtime) { + if(not $mf_mtime) { push @fail_reasons, "Missing ./Makefile"; } - elsif($mf_mtime < $mf_pl_mtime) { - push @fail_reasons, "./Makefile.PL is newer than ./Makefile"; - } - - if ($mf_mtime < $optdeps_mtime) { - push @fail_reasons, "./$optdeps is newer than ./Makefile"; + else { + if($mf_mtime < $mf_pl_mtime) { + push @fail_reasons, "./Makefile.PL is newer than ./Makefile"; + } + if($mf_mtime < $optdeps_mtime) { + push @fail_reasons, "./$optdeps is newer than ./Makefile"; + } } if (@fail_reasons) {