I found that Perl prior to v5.20 (at least v5.16.3 bundled in CentOS Linux 7 and locally-built v5.18.4) fail to return correct value from subroutine returning vec() and substr() as lvalue but called multiple times in rvalue context of one expression:
This apparently had been fixed in the commit 169504d53dbeb12d5171b2b44e7db3c2b81af314 (in 2013), but testcases for these symptoms doesn't seem to exist so I'd like to add ones to prevent accidental regression.
I found that Perl prior to v5.20 (at least v5.16.3 bundled in CentOS Linux 7 and locally-built v5.18.4) fail to return correct value from subroutine returning
vec()
andsubstr()
as lvalue but called multiple times in rvalue context of one expression:This apparently had been fixed in the commit 169504d53dbeb12d5171b2b44e7db3c2b81af314 (in 2013), but testcases for these symptoms doesn't seem to exist so I'd like to add ones to prevent accidental regression.