diff -r dc8741bbad33 -r 6d624831079f lib/DNStools/Config.pm --- a/lib/DNStools/Config.pm Sat Jan 22 00:05:44 2011 +0100 +++ b/lib/DNStools/Config.pm Sun Jan 23 00:21:14 2011 +0100 @@ -12,12 +12,9 @@ # read configuration my @configs = - @_ - ? @_ - : ( - $ENV{DNSTOOLS_CONF}, "dnstools.conf", - "$ENV{HOME}/.dnstools.conf", "/etc/dnstools.conf" - ); + @_ ? @_ + : defined $ENV{DNSTOOLS_CONF} ? $ENV{DNSTOOLS_CONF} + : ("dnstools.conf", "$ENV{HOME}/.dnstools.conf", "/etc/dnstools.conf"); my %config; # the first config FILE