From f3ad17c7399409ac40be812fb05f23d97df72279 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Thu, 30 Nov 2023 18:43:39 +0100 Subject: [PATCH] avoid defined-or to fix compatibility with perl 5.8 --- lib/Test2/API/Instance.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Test2/API/Instance.pm b/lib/Test2/API/Instance.pm index 1484f78cd..70bdc5150 100644 --- a/lib/Test2/API/Instance.pm +++ b/lib/Test2/API/Instance.pm @@ -125,7 +125,7 @@ sub reset { delete $self->{+_PID}; delete $self->{+_TID}; - $self->{+TRACE_STAMPS} = $ENV{T2_TRACE_STAMPS} // 0; + $self->{+TRACE_STAMPS} = $ENV{T2_TRACE_STAMPS} || 0; $self->{+ADD_UUID_VIA} = undef;