From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id C492A1F934 for ; Tue, 20 Apr 2021 19:02:06 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/2] test_common: fix xbail for Perl 5.16 Date: Wed, 21 Apr 2021 00:02:05 +0500 Message-Id: <20210420190206.24183-2-e@80x24.org> In-Reply-To: <20210420174912.h6d2yv7zu5xr4yfc@nitro.local> References: <20210420174912.h6d2yv7zu5xr4yfc@nitro.local> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Our use of `ref' was triggering ambiguity in older versions of the Perl parser. Reported-by: Konstantin Ryabitsev Link: https://public-inbox.org/meta/20210420174912.h6d2yv7zu5xr4yfc@nitro.local/ --- lib/PublicInbox/TestCommon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index 2627871a..67fe6336 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -25,7 +25,7 @@ BEGIN { push @EXPORT, @methods; } -sub xbail (@) { BAIL_OUT join(' ', map { ref ? (explain($_)) : ($_) } @_) } +sub xbail (@) { BAIL_OUT join(' ', map { ref() ? (explain($_)) : ($_) } @_) } sub eml_load ($) { my ($path, $cb) = @_;