Skip to content

Commit 50e3220

Browse files
committed
perlop: Create a heading for tr///; adjust other headings
For symmetry and being able to find it, the tr/// command should have a heading. This means that what we now call Quote-Like Operators no longer includes it, so rename it.
1 parent 15bd298 commit 50e3220

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

pod/perlop.pod

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2458,7 +2458,7 @@ producing a warning if warnings are enabled.
24582458

24592459
=back
24602460

2461-
=head3 Quote-Like Operators
2461+
=head3 Simpler Quote-Like Operators
24622462
X<operator, quote-like>
24632463

24642464
=over 4
@@ -2637,16 +2637,18 @@ put comments into a multi-line C<qw>-string. For this reason, the
26372637
S<C<use warnings>> pragma and the B<-w> switch (that is, the C<$^W> variable)
26382638
produces warnings if the I<STRING> contains the C<","> or the C<"#"> character.
26392639

2640+
=head3 Transliteration Quote-Like Operators
2641+
26402642
=item C<tr/I<SEARCHLIST>/I<REPLACEMENTLIST>/cdsr>
26412643
X<tr> X<y> X<transliterate> X</c> X</d> X</s>
26422644

26432645
=item C<y/I<SEARCHLIST>/I<REPLACEMENTLIST>/cdsr>
26442646

2645-
Transliterates all occurrences of the characters found (or not found
2647+
These transliterate all occurrences of the characters found (or not found
26462648
if the C</c> modifier is specified) in the search list with the
26472649
positionally corresponding character in the replacement list, possibly
26482650
deleting some, depending on the modifiers specified. Unless the C</r>
2649-
flag is specified, it returns the number of characters replaced or
2651+
flag is specified, they return the number of characters replaced or
26502652
deleted. If no string is specified via the C<=~> or C<!~> operator, the
26512653
C<$_> string is transliterated.
26522654

@@ -3882,6 +3884,10 @@ This section has been superceded by
38823884
L</C-style Logical Or, Xor, and Defined Or>. The heading is retained
38833885
only to prevent breaking any pre-existing links to it from outside.
38843886

3887+
=head2 Quote-Like Operators
3888+
3889+
This section has been replaced by L</Simpler Quote-Like Operators>
3890+
38853891
=head1 APPENDIX
38863892

38873893
=head2 List of Extra Paired Delimiters

0 commit comments

Comments
 (0)