summaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-12-31 23:24:57 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-12-31 23:34:49 -0800
commit69974ce61d7459da5eda22eb31d730128757db37 (patch)
tree77493eb569a84e4a683da7951e720ba3c5ccb322 /opcode.h
parente38523840a8a9be645c93d91b9cd796de84f508c (diff)
downloadperl-69974ce61d7459da5eda22eb31d730128757db37.tar.gz
[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.
Diffstat (limited to 'opcode.h')
-rw-r--r--opcode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcode.h b/opcode.h
index 709e92c431..5f242a01a3 100644
--- a/opcode.h
+++ b/opcode.h
@@ -1430,7 +1430,7 @@ EXT Perl_check_t PL_check[] /* or perlvars.h */
Perl_ck_fun, /* vec */
Perl_ck_index, /* index */
Perl_ck_index, /* rindex */
- Perl_ck_fun, /* sprintf */
+ Perl_ck_lfun, /* sprintf */
Perl_ck_fun, /* formline */
Perl_ck_fun, /* ord */
Perl_ck_fun, /* chr */