- Name: perl-utf8-all
- Version: 0.7.0
- Release: 3.mga4
- Epoch:
- Group: Development/Perl
- License: GPL+ or Artistic
- Url: http://search.cpan.org/dist/utf8-all
- Summary: Turn on Unicode - all of it
- Architecture: noarch
- Size: 31930
- Distribution: Mageia
- Vendor: Mageia.Org
- Packager: umeabot <umeabot>
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 '@ARGV' 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, "\n"; # 7
print $out $utf8_str; # out as utf8
}
open my $in, '<', 'outfile'; # in as raw
my $text = do { local $/; <$in>};
print length $text, "\n"; # 10, not 7!
- OptFlags: -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables
- Cookie: sucuk.mageia.org 1382106474
- Buildhost: sucuk.mageia.org
Sources packages:
Other version of this rpm: