Subject: | [PATCH] Adjust tests for 5.21.7 |
I think the previous behaviour of making \scalar(xxx) put xxx in rvalue context was wrong, because \scalar($x) returns a reference to $x, but \scalar(pos) doesn’t return a reference to something that, when assigned to, sets pos. So I fixed this in perl commit 569ddb4. But Want was testing for the previous behaviour.
Subject: | open_LdFf9m4w.txt |
--- a/t/all.t 2014-11-30 22:02:41.000000000 -0800
+++ b/t/all.t 2014-11-30 22:02:31.000000000 -0800
@@ -140,7 +140,7 @@ print ($y == 23 ? "ok 35\n" : "not ok 35
@x = g(36, 'RVALUE', 'LIST');
@x = \(g(37, 'LVALUE', 'LIST'));
-($x) = \(scalar g(38, 'RVALUE'));
+($x) = \(scalar g(38, $] >= 5.021007 ? ('LVALUE', 'SCALAR') : 'RVALUE'));
$$x = 29;
# There used to be a test here which tested that $y != 29. However this