X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperldiag.pod;h=838b54554d9afd3f770593494edafda7bb3fee30;hb=17c338f39c13131c1bc175ef38013b54bc98396d;hp=7408d2fc1ec0c77a7b315bd09356a12d316d1512;hpb=35ae6b54cb5a8d6a9ce74c7f818c7d62df4ac621;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 7408d2f..838b545 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -1294,6 +1294,10 @@ Your code will be interpreted as an attempt to call a method named "elseif" for the class returned by the following block. This is unlikely to be what you want. +=item Empty %s + +(F) Empty C<\p{}> or C<\P{}>. + =item entering effective %s failed (F) While under the C pragma, switching the real and @@ -1940,6 +1944,10 @@ can vary from one line to the next. (S) This is an educated guess made in conjunction with the message "%s found where operator expected". Often the missing operator is a comma. +=item Missing right brace on %s + +(F) Missing right brace in C<\p{...}> or C<\P{...}>. + =item Missing right curly or square bracket (F) The lexer counted more opening curly or square brackets than closing @@ -2309,7 +2317,7 @@ supplied it an uninitialized value. See L. =item Number too long (F) Perl limits the representation of decimal numbers in programs to -about about 250 characters. You've exceeded that length. Future +about 250 characters. You've exceeded that length. Future versions of Perl are likely to eliminate this arbitrary limitation. In the meantime, try using scientific notation (e.g. "1e6" instead of "1_000_000"). @@ -4065,6 +4073,16 @@ where the problem was discovered. See L. its equivalent C block found an internal inconsistency with the version number. +=item v-string in use/require is non-portable + +(W) The use of v-strings is non-portable to older, pre-5.6, Perls. +If you want your scripts to be backward portable, use the floating +point version number: for example, instead of C say +C. This of course won't help: the older Perls +won't suddenly start understanding newer features, but at least +they will show a sensible error message indicating the required +minimum version. + =item Warning: something's wrong (W) You passed warn() an empty string (the equivalent of C) or