Subject: | Logic error in D::Z::App::Command::perltidy |
The combination of C<unless> and C<and> gives an unintended result when
a perltidyrc file is not specified to
Dist::Zilla::App::Command::perltidy. Fixed by this patch:
--- perltidy.pm~ 2010-06-02 20:57:10.000000000 -0500
+++ perltidy.pm 2011-09-19 14:40:19.000000000 -0500
@@ -27,7 +27,7 @@
}
# Verify that file specified is readable
- unless ( $perltidyrc and -r $perltidyrc ) {
+ if ( $perltidyrc and not -r $perltidyrc ) {
$self->zilla->log_fatal(
[ "specified perltidyrc is not readable: %s", $perltidyrc ] );
}