diff options
author | David Mitchell <davem@iabyn.com> | 2017-05-24 16:09:25 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2017-06-07 09:11:03 +0100 |
commit | 0ea23158a16953a6bdda198e6f77df120fe866ef (patch) | |
tree | 91ed5545599546e157683736909dbb3ca81b2014 /pod | |
parent | a60fe28cdc60d5637900d7f01c3f37a844261e65 (diff) | |
download | perl-0ea23158a16953a6bdda198e6f77df120fe866ef.tar.gz |
Perl_sv_vcatpvfn_flags: make %n missing arg fatal
Normally sprintf et al just warn if there aren't enough args; but since %n
wants to write the current string length to the next arg, make it fatal.
Formerly it would croak anyway, but with a spurious "Modification of a
read-only value" error as it as it tried to set &PL_sv_no
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldiag.pod | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 60f32ecb30..cf9801e177 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -3527,6 +3527,11 @@ ended earlier on the current line. (W syntax) An underscore (underbar) in a numeric constant did not separate two digits. +=item Missing argument for %n in %s + +(F) A C<%n> was used in a format string with no corresponding argument for +perl to write the current string length to. + =item Missing argument in %s (W missing) You called a function with fewer arguments than other |