From: Vincent Pit Date: Wed, 11 Feb 2009 23:22:40 +0000 (+0100) Subject: free magic isn't called for array values delete on 5.8.5 and lower X-Git-Tag: v0.30~4 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=9fa437910ef92550e7193e57d654f47e031c23a8;p=perl%2Fmodules%2FVariable-Magic.git free magic isn't called for array values delete on 5.8.5 and lower --- diff --git a/t/30-scalar.t b/t/30-scalar.t index fbb9a4e..c984480 100644 --- a/t/30-scalar.t +++ b/t/30-scalar.t @@ -65,7 +65,7 @@ is $b, 9, 'scalar: array element: get other correctly'; $b = check { exists $a[1] } { }, 'array element: exists'; is $b, 1, 'scalar: array element: exists correctly'; -$b = check { delete $a[1] } { get => 1, free => 1 }, 'array element: delete'; +$b = check { delete $a[1] } { get => 1, free => ($] > 5.008005 ? 1 : 0) }, 'array element: delete'; is $b, 6, 'scalar: array element: delete correctly'; check { $a[1] = 4 } { }, 'array element: set after delete';