X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperldiag.pod;h=480ab8492d8fddeac01e8f59d4e422583fab90fe;hb=b4e944950b7e107f02268dfe7e9eaf2795323d47;hp=b55c7dfbc499907e5787885e3b594e62c8a227ac;hpb=79eeca274c358bbc6dfc41f18a8cb0c37b1b4384;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perldiag.pod b/pod/perldiag.pod index b55c7df..480ab84 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -182,6 +182,11 @@ spots. This is now heavily deprecated. must either both be scalars or both be lists. Otherwise Perl won't know which context to supply to the right side. +=item Negative offset to vec in lvalue context + +(F) When vec is called in an lvalue context, the second argument must be +greater than or equal to zero. + =item Attempt to bless into a reference (F) The CLASSNAME argument to the bless() operator is expected to be @@ -1708,6 +1713,16 @@ silently ignored. (F) Your machine apparently doesn't implement ioctl(), which is pretty strange for a machine that supports C. +=item `%s' is not a code reference + +(W) The second (fourth, sixth, ...) argument of overload::constant needs +to be a code reference. Either an anonymous subroutine, or a reference +to a subroutine. + +=item `%s' is not an overloadable type + +(W) You tried to overload a constant type the overload package is unaware of. + =item junk on end of regexp (P) The regular expression parser is confused. @@ -1758,7 +1773,7 @@ L. (F) There is currently a limit on the length of string which lookbehind can handle. This restriction may be eased in a future release. The << HERE shows in the regular expression about where the problem was discovered. - + =item Malformed PERLLIB_PREFIX (F) An error peculiar to OS/2. PERLLIB_PREFIX should be of the form @@ -1865,6 +1880,14 @@ catches that. But an easy way to do the same thing is: Another way is to assign to a substr() that's off the end of the string. +Yet another way is to assign to a C loop I when I +is aliased to a constant in the look I: + + $x = 1; + foreach my $n ($x, 2) { + $n *= 2; # modifies the $x, but fails on attempt to modify the 2 + } + =item Modification of non-creatable array value attempted, %s (F) You tried to make an array value spring into existence, and the @@ -2223,6 +2246,11 @@ L for more on portability concerns. See also L for writing portable code. +=item Odd number of arguments for overload::constant + +(W) The call to overload::constant contained an odd number of arguments. +The arguments should come in pairs. + =item Odd number of elements in hash assignment (W misc) You specified an odd number of elements to initialize a hash, @@ -2778,7 +2806,7 @@ Doing so has no effect. (W internal) The internal sv_replace() function was handed a new SV with a reference count of other than 1. -=item Reference to nonexistant group before << HERE in regex m/%s/ +=item Reference to nonexistent group before << HERE in regex m/%s/ (F) You used something like C<\7> in your regular expression, but there are not at least seven sets of capturing parentheses in the expression. If you @@ -2871,6 +2899,10 @@ filehandle that was either never opened or has since been closed. (F) This machine doesn't implement the select() system call. +=item Self-ties are not supported + +(F) Self-ties are not supported in the current implementation. + =item Semicolon seems to be missing (W semicolon) A nearby syntax error was probably caused by a missing @@ -3790,6 +3822,10 @@ but in actual fact, you got So put in parentheses to say what you really mean. +=item Wide character in %s + +(F) Perl met a wide character (>255) when it wasn't expecting one. + =item write() on closed filehandle %s (W closed) The filehandle you're writing to got itself closed sometime