From: Nicholas Clark Date: Tue, 13 Oct 2009 14:37:12 +0000 (+0100) Subject: shift with barewords is deprecated, so this test from perl 1 needs updating. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f652f7a555220290c8a3a6c757a06871483f14f9;p=p5sagit%2Fp5-mst-13.2.git shift with barewords is deprecated, so this test from perl 1 needs updating. --- diff --git a/t/op/unshift.t b/t/op/unshift.t index 0c26623..30291fb 100644 --- a/t/op/unshift.t +++ b/t/op/unshift.t @@ -3,10 +3,10 @@ print "1..2\n"; @a = (1,2,3); -$cnt1 = unshift(a,0); +$cnt1 = unshift(@a,0); if (join(' ',@a) eq '0 1 2 3') {print "ok 1\n";} else {print "not ok 1\n";} -$cnt2 = unshift(a,3,2,1); +$cnt2 = unshift(@a,3,2,1); if (join(' ',@a) eq '3 2 1 0 1 2 3') {print "ok 2\n";} else {print "not ok 2\n";}