Events: Fix msg:defer event for the hosts_max_try_hardlimit case. Bug 2554
[exim.git] / src / src / exiqsumm.src
index 97cacdd6358ae8628ba2749a72cc1767075f135b..67772f5e8bf0029cd0f8fdb4132180b185601ec9 100644 (file)
@@ -45,10 +45,10 @@ use warnings;
 BEGIN { pop @INC if $INC[-1] eq '.' };
 use File::Basename;
 
-if ($ARGV[0] eq '--version') {
+if (@ARGV && $ARGV[0] eq '--version') {
     print basename($0) . ": $0\n",
         "build: EXIM_RELEASE_VERSIONEXIM_VARIANT_VERSION\n",
-        "perl(runtime): $^V\n";
+        "perl(runtime): $]\n";
         exit 0;
 }