branch | hs12 |
changeset 87 | 6d624831079f |
parent 85 | c47953192c5c |
--- 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