This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #103492] Give lvalue cx to (s)printf args
authorFather Chrysostomos <sprout@cpan.org>
Sun, 1 Jan 2012 07:24:57 +0000 (23:24 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 1 Jan 2012 07:34:49 +0000 (23:34 -0800)
commit69974ce61d7459da5eda22eb31d730128757db37
tree77493eb569a84e4a683da7951e720ba3c5ccb322
parente38523840a8a9be645c93d91b9cd796de84f508c
[perl #103492] Give lvalue cx to (s)printf args

Or potential lvalue context, like function calls.

The %n format code’s existence renders these two very much like func-
tion calls, as they can modify their arguments.

This allows sprintf("...%n", substr ...) to work.
ext/B/t/optree_constants.t
op.c
opcode.h
regen/opcodes
t/io/print.t
t/op/sprintf.t