summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-10-14 10:08:44 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-10-14 10:08:44 +0000
commit73b437c8b23cd73848b265b0c5a0c71d47dc6532 (patch)
tree5f2e0298da733d0eeaffd2d29cb6db617d09c29a /pod
parent4ad36b56fc9a36a6ae97dede5c0a0b63c849714d (diff)
downloadperl-73b437c8b23cd73848b265b0c5a0c71d47dc6532.tar.gz
Warn about false ranges like \d-\w (see the change #4355).
The invalid ranges (b-a) warning message also enhanced. p4raw-link: @4355 on //depot/cfgperl: 1209ba901e0b2880eea69ad70613848af5543517 p4raw-id: //depot/cfgperl@4374
Diffstat (limited to 'pod')
-rw-r--r--pod/perldelta.pod19
-rw-r--r--pod/perldiag.pod9
2 files changed, 23 insertions, 5 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index ed395be00e..b4d4d217de 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -15,8 +15,8 @@ This document describes differences between the 5.005 release and this one.
=head2 Perl Source Incompatibilities
-Beware that any new warnings that have been added are B<not> considered
-incompatible changes.
+Beware that any new warnings that have been added or enhanced old
+warnings are B<not> considered incompatible changes.
Since all new warnings must be explicitly requested via the C<-w>
switch or the C<warnings> pragma, it is ultimately the programmer's
@@ -1012,7 +1012,7 @@ change#4052
=item Data::Dumper
A C<Maxdepth> setting can be specified to avoid venturing
-too deeply into depp data structures. See L<Data::Dumper>.
+too deeply into deep data structures. See L<Data::Dumper>.
Dumping C<qr//> objects works correctly.
@@ -1342,7 +1342,7 @@ A tutorial on managing class data for object modules.
=back
-=head1 New Diagnostics
+=head1 New or Changed Diagnostics
=over 4
@@ -1561,6 +1561,13 @@ See Server error.
(F) While under the C<use filetest> pragma, switching the real and
effective uids or gids failed.
+=item false [] range "%s" in regexp
+
+(W) A character class range must start and end at a literal character, not
+another character class like C<\d> or C<[:alpha:]>. The "-" in your false
+range is interpreted as a literal "-". Consider quoting the "-", "\-".
+See L<perlre>.
+
=item Filehandle %s opened only for output
(W) You tried to read from a filehandle opened only for writing. If you
@@ -1624,6 +1631,10 @@ by Perl or by a user-supplied handler. See L<attributes>.
The indicated attributes for a subroutine or variable were not recognized
by Perl or by a user-supplied handler. See L<attributes>.
+=item invalid [] range "%s" in regexp
+
+The offending range is now explicitly displayed.
+
=item Invalid separator character %s in attribute list
(F) Something other than a comma or whitespace was seen between the
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 8988730c8d..11758e0e88 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -1380,6 +1380,13 @@ the effect of blessing the reference into the package main. This is
usually not what you want. Consider providing a default target
package, e.g. bless($ref, $p || 'MyPackage');
+=item false [] range "%s" in regexp
+
+(W) A character class range must start and end at a literal character, not
+another character class like C<\d> or C<[:alpha:]>. The "-" in your false
+range is interpreted as a literal "-". Consider quoting the "-", "\-".
+See L<perlre>.
+
=item Fatal VMS error at %s, line %d
(P) An error peculiar to VMS. Something untoward happened in a VMS system
@@ -1680,7 +1687,7 @@ by Perl or by a user-supplied handler. See L<attributes>.
The indicated attributes for a subroutine or variable were not recognized
by Perl or by a user-supplied handler. See L<attributes>.
-=item invalid [] range in regexp
+=item invalid [] range "%s" in regexp
(F) The range specified in a character class had a minimum character
greater than the maximum character. See L<perlre>.