Skip to content

Commit d0ebd20

Browse files
committed
perlop: Update advice on relational ops and Unicode
Enhancements have been made in the last few releases to using these operators on UTF-8 locales; but this advice was not updated, so until this commit, said don't do that.
1 parent bc8ebc5 commit d0ebd20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pod/perlop.pod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -650,9 +650,9 @@ other and with respect to the equality operators of the same precedence.
650650
C<"lt">, C<"le">, C<"ge">, C<"gt"> and C<"cmp"> use the collation (sort)
651651
order specified by the current C<LC_COLLATE> locale if a S<C<use
652652
locale>> form that includes collation is in effect. See L<perllocale>.
653-
Do not mix these with Unicode,
654-
only use them with legacy 8-bit locale encodings.
655-
The standard C<L<Unicode::Collate>> and
653+
Depending on the capabilities of the platform, these can give reasonable
654+
results with Unicode, but
655+
the standard C<L<Unicode::Collate>> and
656656
C<L<Unicode::Collate::Locale>> modules offer much more powerful
657657
solutions to collation issues.
658658

0 commit comments

Comments
 (0)