⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 io_utf8.t

📁 source of perl for linux application,
💻 T
字号:
#!./perlBEGIN {    unless(grep /blib/, @INC) {	chdir 't' if -d 't';	@INC = '../lib';    }    unless ($] >= 5.008 and find PerlIO::Layer 'perlio') {	print "1..0 # Skip: not perlio\n";	exit 0;    }}require($ENV{PERL_CORE} ? "./test.pl" : "./t/test.pl");plan(tests => 5);my $io;use_ok('IO::File');$io = IO::File->new;ok($io->open("io_utf8", ">:utf8"), "open >:utf8");ok((print $io chr(256)), "print chr(256)");undef $io;$io = IO::File->new;ok($io->open("io_utf8", "<:utf8"), "open <:utf8");is(ord(<$io>), 256, "readline chr(256)");undef $io;END {  1 while unlink "io_utf8";}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -