File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -1635,15 +1635,13 @@ Not available in Perl 6.
1635
1635
1636
1636
= item tr///
1637
1637
1638
- Works similarly to how it does in Perl 5. The one caveat is that ranges are specified differently.
1639
- Instead of using a range "a-z", you would use "a..z", i. e. with Perl's
1640
- range operator. In Perl 6, C < tr/// > has a method version, which is
1641
- better documented, called C < .trans > . C < .trans > uses a list of pairs, as
1642
- follows: C << $x.trans(['a'..'c'] => ['A'..'C'], ['d'..'q'] =>
1643
- ['D'..'Q'], ['r'..'z'] => ['R'..'Z']); >> A much more extensive
1644
- description of the uses of C < .trans > can be found at
1645
- L < https://design.perl6.org/S05.html#Transliteration > . The C < y/// >
1646
- equivalent has been done away with.
1638
+ Works similarly to how it does in Perl 5. The one caveat is that ranges are
1639
+ specified differently. Instead of using a range "a-z", you would use "a..z",
1640
+ i.e. with Perl's range operator. In Perl 6, C < tr/// > has a method version,
1641
+ called L < trans > , which offers a few additional features.
1642
+
1643
+ Perl 5's C < /r > flag is instead implemented as C < TR/// > operator.
1644
+ The C < y/// > equivalent does not exist.
1647
1645
1648
1646
= head2 truncate
1649
1647
You can’t perform that action at this time.
0 commit comments