summaryrefslogtreecommitdiff
path: root/pod/perlop.pod
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-11-07 12:14:42 -0700
committerKarl Williamson <khw@cpan.org>2020-11-14 21:41:00 -0700
commit1c137c72d5dc07332a55a4895542d2b805d4684e (patch)
treea20a5849f46bd4e9a6d4fb4bbce300255bbad718 /pod/perlop.pod
parentcfe2ff853c23d79ea3a2677abd7a55bafc8e717f (diff)
downloadperl-1c137c72d5dc07332a55a4895542d2b805d4684e.tar.gz
perlop: Note tr/// delimiters may be any printables
Diffstat (limited to 'pod/perlop.pod')
-rw-r--r--pod/perlop.pod3
1 files changed, 2 insertions, 1 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod
index 1387dd6978..51303be3a2 100644
--- a/pod/perlop.pod
+++ b/pod/perlop.pod
@@ -2584,7 +2584,8 @@ Unless the C</r> option is used, the string specified with C<=~> must be a
scalar variable, an array element, a hash element, or an assignment to one
of those; in other words, an lvalue.
-If the characters delimiting I<SEARCHLIST> and I<REPLACEMENTLIST>
+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<\\>.