Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[S05] removed redundant .sort
Sorting a bunch of pairs going into an LTM that disregards order is
kinda silly.
  • Loading branch information
Carl Masak committed Feb 9, 2011
1 parent 3bda36a commit 44aa7e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions S05-regex.pod
Expand Up @@ -17,8 +17,8 @@ Synopsis 5: Regexes and Rules

Created: 24 Jun 2002

Last Modified: 7 Feb 2011
Version: 139
Last Modified: 8 Feb 2011
Version: 140

This document summarizes Apocalypse 5, which is about the new regex
syntax. We now try to call them I<regex> rather than "regular
Expand Down Expand Up @@ -4135,11 +4135,11 @@ The C<tr///> quote-like operator now also has a method form called
C<trans()>. Its argument is a list of pairs. You can use anything that
produces a pair list:

$str.trans( %mapping.pairs.sort );
$str.trans( %mapping.pairs );

Use the C<.=> form to do a translation in place:

$str.=trans( %mapping.pairs.sort );
$str.=trans( %mapping.pairs );

(Perl 6 does not support the C<y///> form, which was only in C<sed> because
they were running out of single letters.)
Expand Down

0 comments on commit 44aa7e1

Please sign in to comment.