Permalink
Browse files

Document the change to utf8::all

For #190
  • Loading branch information...
1 parent 51bd019 commit 909cd992414e04466072b4b8a411b9023ffdc0a9 @schwern schwern committed Sep 24, 2011
Showing with 18 additions and 6 deletions.
  1. +3 −0 Changes
  2. +15 −6 lib/perl5i.pm
View
@@ -4,6 +4,9 @@
with Devel::REPL. [github 153]
* Depend on a newer indirect.pm to avoid leaks into eval on 5.10. [rt.cpan.org 64521]
+ Misc
+ * Delegate Unicode stuff to utf8::all. [github #190]
+
2.6.1 Thu, 24 Mar 2011 16:33:39 +1100
Bug Fixes
View
@@ -766,14 +766,23 @@ C<list> will force list context similar to how
L<perlfunc/scalar|scalar> will force scalar context.
-=head2 utf8
+=head2 utf8::all
-L<utf8> lets you put UTF8 encoded strings into your source code.
-This means UTF8 variable and method names, strings and regexes.
+perl5i turns on L<utf8::all> which turns on all the Unicode features
+of Perl it can.
-It means strings will be treated as a set of characters rather than a
-set of bytes. For example, C<length> will return the number of
-characters, not the number of bytes.
+Here is the current list, more may be turned on later.
+
+Bare strings in your source code are now UTF8. This means UTF8
+variable and method names, strings and regexes.
+
+ my $message = "انا لا اتكلم العربيه";
+ my $τάδε = "It's all Greek to me!";
+ sub fünkßhüñ { ... }
+
+Strings will be treated as a set of characters rather than a set of
+bytes. For example, C<length> will return the number of characters,
+not the number of bytes.
length("perl5i is MËTÁŁ"); # 15, not 18

0 comments on commit 909cd99

Please sign in to comment.