summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Book <grinnz@grinnz.com>2021-10-17 17:59:44 -0400
committerKarl Williamson <khw@cpan.org>2021-10-17 18:28:58 -0600
commitc2ad6dafc59d8d9369dce3e7a16dfe04c43872ef (patch)
treeff27697afeaab8cbfd56536c163096bbead73c51
parent7ab72683be77c37dbd4c1d1194eccdc905d8ff88 (diff)
downloadperl-c2ad6dafc59d8d9369dce3e7a16dfe04c43872ef.tar.gz
perlop - clarify that hyphens are interpreted literally in tr with single quotes
-rw-r--r--pod/perlop.pod3
1 files changed, 2 insertions, 1 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod
index 1a85955c70..29fceb3116 100644
--- a/pod/perlop.pod
+++ b/pod/perlop.pod
@@ -2610,7 +2610,8 @@ of those; in other words, an lvalue.
The characters delimitting I<SEARCHLIST> and I<REPLACEMENTLIST>
can be any printable character, not just forward slashes. If they
are single quotes (C<tr'I<SEARCHLIST>'I<REPLACEMENTLIST>'>), the only
-interpolation is removal of C<\> from pairs of C<\\>.
+interpolation is removal of C<\> from pairs of C<\\>, and hyphens are
+interpreted literally rather than specifying a character range.
Otherwise, a character range may be specified with a hyphen, so
C<tr/A-J/0-9/> does the same replacement as