From: Don Armstrong Date: Thu, 23 Jul 2009 16:35:24 +0000 (+0200) Subject: fix use of || vs. // in Debbugs::Common X-Git-Tag: release/2.6.0~460^2~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2dd2beb70e9e93e02008606052bf61505b144c53;hp=f47a5ff0dea4b460b0819848789b7b7c92f288ed;p=debbugs.git fix use of || vs. // in Debbugs::Common --- 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;