From 2dd2beb70e9e93e02008606052bf61505b144c53 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Thu, 23 Jul 2009 18:35:24 +0200 Subject: [PATCH] fix use of || vs. // in Debbugs::Common --- Debbugs/Common.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Debbugs/Common.pm b/Debbugs/Common.pm index d8eaf40..ecd4607 100644 --- a/Debbugs/Common.pm +++ b/Debbugs/Common.pm @@ -635,10 +635,10 @@ If debug is non-zero, the code at which the failure occured is output. sub cleanup_eval_fail { my ($error,$debug) = @_; if (not defined $error or not @_) { - $error = $@ || 'unknown reason'; + $error = $@ // 'unknown reason'; } if (@_ <= 1) { - $debug = $DEBUG || 0; + $debug = $DEBUG // 0; } $debug = 0 if not defined $debug; -- 2.39.2