Package : perl-utf8-all > RPM : perl-utf8-all-0.17.0-2.mga6.src.rpm

Basic items

Name perl-utf8-all
Version 0.17.0
Release 2.mga6
URL http://search.cpan.org/dist/utf8-all
Group Development/Perl
Summary Turn on Unicode - all of it
Size 26KB
Arch noarch
License GPL+ or Artistic

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, "
"; # 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!

Media information

Distribution release Mageia 6
Media name core-release
Media arch i586

Advanced items

Source RPM NOT IN DATABASE ?!
Build time 2016-06-19 12:47:08
Changelog View in Sophie
Files View in Sophie
Dependencies View in Sophie