summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-10-02 20:09:11 +0300
committerAbhijit Menon-Sen <ams@wiw.org>2002-10-02 14:10:07 +0000
commitd1573ac7f3669af3adf9935c83633459afbc51af (patch)
tree73c5f93ce050ac90b8a4caf4751f92965b1249ce
parenta94e8023b124b822fcd2c4e28f8dc89b1f24e54a (diff)
downloadperl-d1573ac7f3669af3adf9935c83633459afbc51af.tar.gz
no [] in tr///
Message-Id: <20021002140911.GH278184@lyta.hut.fi> p4raw-id: //depot/perl@17962
-rw-r--r--pod/perldiag.pod2
-rw-r--r--toke.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index a08837d94f..3da728d06a 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -1844,7 +1844,7 @@ C<{}> from your ending C<\x{}> - C<\x> without the curly braces can go only
up to C<ff>. The <-- HERE shows in the regular expression about where the
problem was discovered. See L<perlre>.
-=item Invalid [] range "%s" in transliteration operator
+=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>.
diff --git a/toke.c b/toke.c
index e747a2d3c1..21632110ba 100644
--- a/toke.c
+++ b/toke.c
@@ -1273,7 +1273,7 @@ S_scan_const(pTHX_ char *start)
if (min > max) {
Perl_croak(aTHX_
- "Invalid [] range \"%c-%c\" in transliteration operator",
+ "Invalid range \"%c-%c\" in transliteration operator",
(char)min, (char)max);
}