diff options
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r-- | pod/perldiag.pod | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index c034c36e74..a10f9dfb42 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -76,6 +76,13 @@ on the operator (e.g. C<CORE::log($x)>) or by declaring the subroutine to be an object method (see L<perlsub/"Subroutine Attributes"> or L<attributes>). +=item Ambiguous range in transliteration operator + +(F) You wrote something like C<tr/a-z-0//> which doesn't mean anything at +all. To include a C<-> character in a transliteration, put it either +first or last. (In the past, C<tr/a-z-0//> was synonymous with +C<tr/a-y//>, which was probably not what you would have expected.) + =item Ambiguous use of %s resolved as %s (W ambiguous)(S) You said something that may not be interpreted the way @@ -1081,7 +1088,7 @@ arbitrarily. ("Simple" and "medium" situations are handled without recursion and are not subject to a limit.) Try shortening the string under examination; looping in Perl code (e.g. with C<while>) rather than in the regular expression engine; or rewriting the regular expression so -that it is simpler or backtracks less. (See L<perlbook> for information +that it is simpler or backtracks less. (See L<perlfaq2> for information on I<Mastering Regular Expressions>.) =item connect() on closed socket %s @@ -1697,6 +1704,11 @@ L<perlfunc/sprintf>. (F) The range specified in a character class had a minimum character greater than the maximum character. See L<perlre>. +=item invalid [] range "%s" in transliteration operator + +(F) The range specified in the tr/// or y/// operator had a minimum +character greater than the maximum character. See L<perlop>. + =item Invalid separator character %s in attribute list (F) Something other than a colon or whitespace was seen between the |