Skip to content

Commit e729bd4

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 97a8198 commit e729bd4

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

pod/perlop.pod

Lines changed: 13 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,22 @@ 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+
=back
2641+
2642+
=head3 Transliteration Quote-Like Operators
2643+
2644+
=over
2645+
26402646
=item C<tr/I<SEARCHLIST>/I<REPLACEMENTLIST>/cdsr>
26412647
X<tr> X<y> X<transliterate> X</c> X</d> X</s>
26422648

26432649
=item C<y/I<SEARCHLIST>/I<REPLACEMENTLIST>/cdsr>
26442650

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

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

3891+
=head2 Quote-Like Operators
3892+
3893+
This section has been replaced by L</Simpler Quote-Like Operators>
3894+
38853895
=head1 APPENDIX
38863896

38873897
=head2 List of Extra Paired Delimiters

0 commit comments

Comments
 (0)