Name : perl-utf8-all
| |
Version : 0.24.0
| Vendor : Mageia_Org
|
Release : 4.mga9
| Date : 2022-03-21 03:43:16
|
Group : Development/Perl
| Source RPM : perl-utf8-all-0.24.0-4.mga9.src.rpm
|
Size : 0.05 MB
| |
Packager : umeabot < umeabot>
| |
Summary : Turn on Unicode - all of it
|
Description :
the utf8 manpage allows you to write your Perl encoded in UTF-8. That means UTF-8 strings, variable names, and regular expressions. \'utf8::all\' goes further, and makes \'AATTARGV\' encoded in UTF-8, and filehandles are opened with UTF-8 encoding turned on by default (including STDIN, STDOUT, STDERR), and charnames are imported so \'\\N{...}\' sequences can be used to compile Unicode characters based on names. If you _don\'t_ want UTF-8 for a particular filehandle, you\'ll have to set \'binmode $filehandle\'.
The pragma is lexically-scoped, so you can do the following if you had some reason to:
{ use utf8::all; open my $out, \'>\', \'outfile\'; my $utf8_str = \'føø bār\'; print length $utf8_str, \"\ \"; # 7 print $out $utf8_str; # out as utf8 } open my $in, \'< \', \'outfile\'; # in as raw my $text = do { local $/; < $in>}; print length $text, \"\ \"; # 10, not 7!
|
RPM found in directory: /vol/rzm3/linux-mageia/distrib/cauldron/x86_64/media/core/release |