diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-12-31 23:24:57 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-12-31 23:34:49 -0800 |
commit | 69974ce61d7459da5eda22eb31d730128757db37 (patch) | |
tree | 77493eb569a84e4a683da7951e720ba3c5ccb322 /opcode.h | |
parent | e38523840a8a9be645c93d91b9cd796de84f508c (diff) | |
download | perl-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |